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....)
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 !
I have this
var result = general.GetInformation(int.Parse(ID), F_account, F_Info, Types);
this GetInformation is my Entity.Getinformation class.. when I am trying to assing result globly I am getting Cannot Assing to implicit typed local variable?
var result = ?
what should I assing in global?
thanks
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
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?
Why Generics (in Java) works with the objects but not with primitive types?
For example
Gen<Integer> inum = new Gen<Integer>(100); // works fine, but
Gen<int> inums = new Gen<int>(100); // is not allowed.
Thanks !
Can anyone shed light on why contravariance does not work with C# value types?
The below does not work
private delegate Asset AssetDelegate(int m);
internal string DoMe()
{
AssetDelegate aw = new AssetDelegate(DelegateMethod);
aw(32);
return "Class1";
}
private static House DelegateMethod(object m)
{
return null;
}
How can I pass an array of struct by reference ?
example :
struct Coordinate {
int X;
int Y;
};
SomeMethod(Coordinate *Coordinates[]){
//Do Something with the array
}
int main(){
Coordinate Coordinates[10];
SomeMethod(&Coordinates);
}
Hello,
I am trying to use the http_get function. But I get a undefined reference error. I understands that this means the function can not be found. However I do no know how to fix this? Could somebody help?
Cheers
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
Is it possible to create types like e.g. String(20) in scala?
The aim would be to have compiler checks for things like:
a: String(20)
b: String(30)
a = b; // throws a compiler exception when no implicit conversion is available
b= a; // works just fine
Note: It doesn't need to be/named String
I have this
var result = general.GetInformation(int.Parse(ID), F_account, F_Info, Types);
this GetInformation is my Entity.Getinformation class.. when I am trying to assign result globly I am getting Cannot Assign to implicit typed local variable?
var result = ?
what should I assign in global?
thanks
I'm surprised that I cannot find on the net a solution where I could manage views for content types. Do I really have to visit each task list with my browser to add/modify a view?
Is there any solutions available that would allow me to just define a view for content type and thus make this view available on all lists where content type is?
Hi guys,
i've got a problem with pushing files to my nexus one:
It seems to me that there is only a small selection of file types that are accepted by my phone (such like jpg, gif and so on).
I recently tried to push other files to my phone (in my case gpx) and my phone has rejected it automatically...
is there a way to bypass or extent this filter?
Is there also a way to catch those files by a service?
greets,
poeschlorn
As far as i can see in a situation like this:
var x = [];
var y = {};
y.someProp='asd';
This doesnt work:
x.push(y);
What I want to do is add a reference of y to x so that later if I will "delete y;" I want it also to be removed from the array x.
From the book "Groovy and Grails recipes" I'm using the following code snippet:
String HelloLanguage = "def hello(language) {return \"Hello $language\"}"
However, I get a compiler error "You attempted to reference a variable in the binding or an instance variable from a static context." because language can't be bound. What is wrong?
Hi,
On the MSDN, I have found following:
public event EventHandler<MyEventArgs> SampleEvent;
public void DemoEvent(string val)
{
// Copy to a temporary variable to be thread-safe.
EventHandler<MyEventArgs> temp = SampleEvent;
if (temp != null)
temp(this, new MyEventArgs(val));
}
I do not understand, "copy to temporary variable", isnt it reference type?
We have an issue with rolling out content types with features. How does one roll them out to the SharePoint farm and update the database at the same time. Right now, we cannot figure it out. Is there something that has to be done custom?
I want to print values of all the types like char, long... so on and also nsdate, nsdictionary, frame ....I want to now to print values of each type variables.
A colleague of mine sets reference to null in finally blocks. I think this is nonsense.
public Something getSomething() {
JDBCConnection jdbc=null;
try {
jdbc=JDBCManager.getConnection(JDBCTypes.MYSQL);
}
finally {
JDBCManager.free(jdbc);
jdbc=null; // <-- Useful or not?
}
}
What do you think of it?
Is it possible to constraint a method so that it receives only int, double, long or other numerical types that has the usual numerical operations ( such as +,-,*,/) defined?
What .NET method has this error message: "Object cannot be cast from DBNull to other types"
The stack traces have been stipped from my logs so I'm looking for a starting point.