all groups > visual c > november 2007
Directory::GetDirectories returning non-existent directories
Posted by Peteroid at 11/2/2007 9:21:03 PM
Assuming you have the default directory settings, try this code:
String^ full_path = "c:\\Users\\Owner\\Documents" ;
array<String^>^ dir_list = Directory::GetDirectories( full_path ) ;
In my case, it returns all the directories as it should in dir_list, but it
also returns the following non... more >>
Problems with sizeof function
Posted by Fran at 11/2/2007 5:41:01 AM
sHi!
I have a very strange problem with the behaviour of the sizeof command. I
have tested it in vc6,vc 2001 and vc 2003. The problem is quite simple.
When I made a sizeof to the next struct, it returns that the size is 40
instead of 38. I consider that a short is 2 bytes, float 4 bytes, u... more >>
name conflicts in enum
Posted by George at 11/2/2007 2:29:01 AM
Hello everyone,
Suppose I have two enums which has an item with the same names -- but
different values,
[Code]
enum foo {
NAME = 100;
}
enum goo {
NAME = 200;
}
[/Code]
Are there any ways to specify whether I need to access NAME in fo... more >>
Manually changing an ActiveX library's UUID
Posted by Anonymous at 11/1/2007 4:35:05 PM
I'm trying to change the uuid of an Activex control so that my modified
version can coexist on the same system as the official control. I did
what I thought was obvious:
1). Generated new GUIDS using the VC8 GUID generator
2). Modified the .idl (or .odl for another control) file
3). Rebuilt... more >>
changing properties of a form at runtime
Posted by tonyjeffs at 11/1/2007 1:50:09 PM
VC++Express;
I have a form with one button. This is my code for the button1 click
event.
BackColor=Color::Red; // Red is in the scope Color ?
changes
color of Form1
button1->BackColor=Color::White; //changes color of button1
MessageBox::Show("Hello"); //Show is in the scope ... more >>
Is there something like a WebBrowser class?
Posted by Peter Oliphant at 11/1/2007 11:06:15 AM
It's not necessary, but it would be nice if there was a way I could easily
create something like a 'web browser form' or a 'display web page form' as
forms in my application (in a Panel would be even better!). Something that
allows browsing the internet within the window, or possibly just disp... more >>
Does anyone know what this text means? (related to C4251 warning)
Posted by Anonymous at 11/1/2007 3:25:46 AM
On MS site: http://msdn2.microsoft.com/en-us/library/esew7y1w(VS.80).aspx
is the following garbled rambling:
"You can avoid exporting classes by defining a DLL that defines a class
with virtual functions, and functions you can call to instantiate and
delete objects of the type. You can the... more >>
/CLR versus No Runtime Support
Posted by Creativ at 11/1/2007 12:00:00 AM
Hi,
I'm moving code from VC 6.0 to VC2005. I noticed that some code I can
build and run in VC 2005 with CLR support. But once I put them into a
project which support CLR, I got error "AccessViolationException"
during run-time.
Could anyone help with that? Why is there such a difference?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
|