visual-c++

visual C++ declaring a string array

i want to use unmanaged C++ std::string nodename[100]; this command give following error even though i use #include"string.h" also 'std' : is not a class or namespace name ...

How to create a variable length array/vector of String ^ in VC++

I'm trying to create a vector of System::String ^, I tried using the straight up STL vector, but vector<String ^> my_vector gives a C4439 error (function needs to have a __clrcall calling convention. So, I added __clrcall to my function prototype, and it still complained about my declaration of vector<String ^>. I'm also reading th...

In WinDbg, can I use software breakpoints without having symbols?

Hello! I'm having trouble using software breakpoints in WinDbg in order to break in a given address. It's a Visual C++ 6.0 MFC executable without symbols (belive me, I just can not generate the symbols). Suppose my executable image is named image00400000. Using Software Breakpoints (bp): 0:000> bp image00400000 + 0x003ba1eb ...

Saving URLs of website viewed by the user to a log file in win32 API.

I have a win32 API application in visual c++ in which I want to save URLs of website viewed by the user to a log file. Can any guide me in trouble shooting above problem. ...

Saving recently viewed or opened folder to a log file.

I have a win32 API application in visual c++ in which I want to save recently viewed or opened folder to a log file. I have a code which stores the current window open to a log file. The code for current window opened is as following. Can this code be manipulated to create log file for recently viewed folder. static TCHAR wndText[100];...

visual c++, copy in array

how to copy textBox->Text in a array textbox will contain name of person and it is suppose to have atleast 10 names . for that i m using char 2d array but it is not working , i too used std::string array but it is also not working i m working in vc++ ...

Is an Intel i7 (4 cores, 8 HT-based logical cores) better than an Intel Core 2 Quad for VisualC++ development?

I have to make a recommendation to management regarding whether or not we should spend the extra money to purchase new computers with Intel i7 CPUs (i7 950s) or whether we should buy Intel Core 2 Quad processors (Q9550s or something equivalent.) Our main task are Microsoft Visual C++ development, thus we are aiming to ensure the best co...

Getting FILEVERSION from Visual C++ Resource File

Are there some preprocessor keywords to use to access the FILEVERSION defined in my .rc file at compile time? I don't really want to add extra code to read the file information from the compiled product itself. ...

Can I see what is eliminated by the Visual C++ /OPT:REF linker option?

The /OPT:REF option causes the Visual C++ linker to Exclude functions and/or data that are never referenced (MSDN) This seems like it would be a good way to identify obsolete code in a legacy codebase. Is there any way to get the linker to output what is eliminated? ...

visual c++ copy textbox content

how to copy textbox->Text content in a char array? i m working in vc++. ...

BeginInvoke, Delagates & multi-Threads

Hi, I am new to this, did google alot but have confusion. my application has more then 200 threads listing individual devices, now i want to buil GUI for this c++ managed /clr empty project application, where a Form having Grid control, & every thread will update corresponding grip row on events like device open, data transfer & device...

What's going on in the 'offsetof' operator?

Visual C++ 2008 C runtime offers an operator 'offsetof', which is actually macro defined as this: #define offsetof(s,m) (size_t)&reinterpret_cast<const volatile char&>((((s *)0)->m)) This allows you to calculate the offset of the member variable m within the class s. What I don't understand in this declaration is: Why are we cas...

Is there a way to use fopen_s() with GCC or at least create a #define about it?

Hi, MSVC compiler says that fopen() is deprecated and recommends the use of fopen_s()... Is there any way to use fopen_s() and still be portable? Any ideas for a #define? Thanks. ...

Using GTK+ in Visual C++

Hello, I want to use GTK for user interface for C++ project. I do not know how to set development environment for it. I downloaded all-in-one bundle of gtk from http://www.gtk.org/download-windows.html How to use it with visual c++ 2008 ? ...

Transparent sprites in c++ with Allegro

I'm learning to use Allegro. I'm trying to make my character cut out. How do I key out a certain color from my bitmap? which way is used for allegro? Thanks ...

A converted vc++ 2003 project asks for msvcpd71d.dll when compiled on vc++2008

After running the conversion wizzard for a vc++ 2003 proyect - which ends with no errors - I get vc++ 2008 to sucessfully compile the project. Then, when launching the exe, a message pops up saying that the program cannot start because MSVCP71D.dll is missing. Any ideas on why a project compiled on vc++ 2008 would ask for MSVCP71D.dll ? ...

Environment windows server 2003 64-bit mode

Error 14001 this application has failed due to start because its side-side by configuration is incorrect. We uninstalled and installed Microsoft Visual C++ redistributable. SIMPLE SOLUTION! " Try installing this http://www.softdevlabs.com/Hercules/vcredist%5Fx86.exe again the window services not started. Environment windows server...

Why is the .TLB not being re-compiled by MIDL?

In my main project directory, there is a .TLB file. It has old information in it, and it is compiled into the binary -- which I can tell from looking at the compiled binary in a hex editor. What's weird is that I updated my .IDL in the main VC++ directory and that's compiled into a .TLB in the project build directory (\Debug), but it's ...

How do I access functions from libsndfile-1.dll in MSVC?

Hi,   I'm having trouble getting libsndfile-1.dll to work in my MSVC project. I can load the library and retrieve the version string from the dll by calling sf_command() from my code. However, I can't seem to get sf__open() to return a SNDFILE pointer. I've also noticed that I can't get fopen() to return a FILE pointer either (maybe th...

API for Giving Notification when a file is added or deleted in a folder

is there any windows API or shell API which will give a notification on when a file is added or deleted in a folder ...