Hi
I know Visual Studio 2010's STL has been rewritten to support rvalue reference to boost its performance a lot.
I am curious that STL of gcc 4.4 (and above) does support it?
Thanks.
I have a style defined in a resource dictionary that applies to
all ComboBox controls.
Within the ComboBox control, I reference the style like so:
Style="{DynamicResource MyComboBoxStyle}"
This works ok.
I want to be able to add some triggers to some of the ComboBox controls.
What is a good way to use the style referenced as a dynamic resource yet still be able to add triggers to some of the ComboBox controls?
I'm trying to save text fields in MySql using NHibernate in Asp.Net frame work. But while executing this I got the error"Object reference not set to an instance of an object". If anyone knew help me...
I have two C files and one header that are as follows:
Header file header.h:
char c = 0;
file1.c:
#include "header.h"
file2.c:
#include "header.h"
I was warned about 'duplicate definition' when compiling. I understand the cause as the variable c is defined twice in both file1.c and file2.c; however, I do need to reference the header.h in both c files. How should I overcome this issue?
When I add a service reference to my Visual Studio 2010 C# project, a new class for one of the types defined in the WSDL will be generated. A de-facto equivalent definition of that type already exists in our solution in a different assembly.
When adding the SoapTypeAttribute to the existing class and replacing the references to the generated class in the generated code, everything runs perfectly and as expected.
How would I tell Visual Studio to use the existing class in the generated code?
Could someone tell me how to view the XML to be sent via web reference while debugging Visual Studio (i.e. see the actual XML with all tags too?) I'm having a "There is an error in this XML Document (4, 56)." error.
Any help would be much appreciated.
Is there a way to use visual studio's "add assembly reference dialog" (or something similar) in my own application? I need it for dynamic code generation and compilation.
This is not simply an OpenFileDialog, since it additionally looks into the GAC and so on, so it will be very complicated to do it on my own, I think.
If this is not possible, how can I get a list of all assemblies from the GAC?
i've found one cheat sheet for doctrine: cheat sheet
but it doesn't list all methods for Doctrine_Record, Doctrine_Core, Doctrine_Query etc.
i wonder if there is a such reference?
Would be very helpful.
Is it allowed to reference external field from nested select?
E.g.
SELECT
FROM ext1
LEFT JOIN (SELECT * FROM int2 WHERE int2.id = ext1.some_id ) as x ON 1=1
in this case, this is referencing ext1.some_id in nested select.
I am getting errors in this case that field ext1.some_id is unknow.
Is it possible? Is there some other way?
I have a WCF service which I am able to connect to from my web application and get data.
I now added a web reference to this wcf project to a wsdl file that a shipping company provides. Intention is to get shipping quotes..
I am able to access the objects that are generated from this wsdl file but when I call service.Authenticate("DEMO");
method almost nothing happens. I debug and see the debugger continue to the next lines but there is no change on service parameters and service.isauthorized is null..
Can you lead me to how I should debug this further and things I should check, or if there are additional steps that I need to ensure to have a web reference working on wcf app
Thanks
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ShippingCalculator.com.freight.api;
namespace ShippingCalculator
{
public class ShippingService : IShippingService
{
freight_service service = new freight_service();
public string GetData(int value)
{
service.setConnectionType(".net");
service.Authenticate("DEMO");
OriginRequest origin = new OriginRequest();
origin.zip = "60101";
DestinationRequest destination = new DestinationRequest();
destination.zip = "10001";
PackageRequest package = new PackageRequest();
package.weight = "10";
ShipmentInfoRequest shipmentInfo = new ShipmentInfoRequest();
shipmentInfo.ship_date = DateTime.Now.AddDays(5);
service.setOrigin(origin);
service.setDestination(destination);
service.setPackage(package);
service.setShipmentInfo(shipmentInfo);
Quote quote = service.getQuote();
return string.Format("Quote Number: {0}<br /> ", quote.QuoteNumber);
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ShippingTestApp.ShippingServiceReference;
namespace ShippingTestApp.Controllers
{
[HandleError]
public class HomeController : Controller
{
public ActionResult Index()
{
ShippingServiceClient shipClient = new ShippingServiceClient();
shipClient.GetData(0);
ViewData["Message"] = shipClient.GetData(0);
return View();
}
}
}
I'm running Ubuntu 12.04 X64 and have installed all the tools(Toolchain: arm-2010q1 and Samsung Galaxy S2 source as given Here) to compile a ROM.
When I run make Command I'm getting this error:
kernel/built-in.o: In function `cpufreq_table_show':
cpu_pm.c:(.text+0x39b64): undefined reference to `cpufreq_frequency_get_table'
kernel/built-in.o: In function `cpufreq_max_limit_store':
cpu_pm.c:(.text+0x39cd4): undefined reference to `omap_cpufreq_max_limit'
cpu_pm.c:(.text+0x39d04): undefined reference to `omap_cpufreq_max_limit_free'
cpu_pm.c:(.text+0x39d24): undefined reference to `omap_cpufreq_max_limit_free'
kernel/built-in.o: In function `cpufreq_min_limit_store':
cpu_pm.c:(.text+0x39dd4): undefined reference to `omap_cpufreq_min_limit'
cpu_pm.c:(.text+0x39e04): undefined reference to `omap_cpufreq_min_limit_free'
cpu_pm.c:(.text+0x39e24): undefined reference to `omap_cpufreq_min_limit_free'
make: *** [.tmp_vmlinux1] Error 1
Can somebody please refer me to a comprehensive tutorial on Canvas which covers all properties / functions?
I also need a definite reference on Canvas - something like w3schools
In Rails 3 (beta 3 on 1.8.7), when calling to_json on a relation i get a circular reference exception. Converting that relation to an array first, and THEN calling to_json works.
Code That fails:
Model.where().to_json (Where model is any model in your Rails 3 app)
Code that works:
Model.where().to_a.to_json
This can be reproed on the console.
Has anyone else run in to this? Is this expected?
how can I fix this error ?
Target of assignment must be a reference value
for (var z:int=0; z<this.tags.getItemAt(i).yearPopularity.length; z++) {
summedPopularity.getItemAt(z) = summedPopularity.getItemAt(z) + tags.getItemAt(i).yearPopularity.getItemAt(z);
}
thanks
I have just asked which one is better?
Static Vs Non-Static?
http://stackoverflow.com/questions/3016717/static-vs-non-static-method-performance-c
I would like to take this discussion one step ahead.
Consider If i pass reference of Panel control as parameter to Public static method, will static method still rules in performance?
I want to match YYYY-YY for sequential years.
I at moment I'm trying to match where all the second YY is the 3rd and 4th characters in YYYY with 1 added to it.
So far I've got {19|20}(\d{2})-(\d{2}), but not sure how to use ? with reference to (1) or whether I'm going about this the right way and finding out the inevitable "unknown unknowns" (like YY99) with this approach?
Edit:
Matches: 2010-11,2011-12,2029-30
Not matches: 2010-12, 2010-09,2011-2,2011-2012
HI everyone,
Just looking for a website or pdf reference which has a color palette of the .NET (Visual Studio 2008) foreground colors? (E.g. like AliceBlue, AntiqueWhite, Cyan....)
I want to link a .lib in my Qt project and I get an error about an undefined reference to vhtIOConn::getDefault(vhtIOConn::DeviceType).
I have already added the following specifications to the .pro file:
######################################################################
# Automatically generated by qmake (2.01a) vie 28. ago 12:48:10 2009
######################################################################
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
LIBS += "C:\agregar\VirtualHandCore.lib"
LIBS += "C:\agregar\VirtualHandDevice.lib"
LIBS += "C:\agregar\VirtualHandRegistry.lib"
# Input
HEADERS += "C:/Documents and Settings/halvarado/Mis documentos/respaldos de Qt/Development/include/vhandtk/vhtBase.h"
SOURCES += main.cpp
What should I do?
How would I refer to a hash using the value of a string - i.e.
#!/usr/bin/env ruby
foo = Hash.new
bar = "foo"
"#{bar}"["key"] = "value"
results in
foo:5:in `[]=': string not matched (IndexError)
from foo:5
How do I use the value of bar (foo) to reference the hash named foo? Thanks!
Hi ,
My problem is the following :
I have a class A that inherits from an abstract base class. I override all the virtual functions from the base class, and I have a constructor like this :
A::A(B* b)
{
this->b=b;
}
In the constructor of class B , I have the following piece of code:
A* a=new A(this)
However this line of code gives the error : undefined reference to 'A::A(B*)'
I have absolutly no idea why could this be happening , so any suggestion would be greatly appreciated !
Hi all,
I have an android application that utilizes another project as a project reference. i've gone into the application options, build path, and then selected the project in project references.
everything builds and deploys fine, but when i try to run the application and instantiate a class in that project, i'm getting a java.lang.NoClassDefFoundError errrrrr.
i'm no java project expert, so i assume i've cocked something simple up. any ideas?
Hi
I am using DataContract with preserveObjectReferences set to false (default). Under any circumsatnces will it cause a Circular reference and cause Serialization Exception?
if yes, could you please xplain with a sample scenario?
Thanks
Lijo
i have some picture files that were included in a vb.net project
how do i reference those files in my code?
what it be just filename.ext
or would it be project/filename.ext
or would it be something like environment.getfolderpath.project/filename.ext??
the build action is NONE, and it is to be copied to output folder