-
- MessageBoxW error
by Drezard
- 9 Replies
- Last post
by Eran B
- Hello, Im trying to do a basic Winsock example using VC++ 2005 Express. It keeps coming up with an error to do with "MessageBoxW" and cant convert parameter 2 ("const char [22] to LPCWSTR" What am i doing wrong... Here is the code: #include <stdafx.h> #include <windows.h> #include <winsock.h> #include <stdio.h> #define NETWORK_ERROR -1 #define NETWORK_O
-
- How to read image from MFC using image magick?
by Surezsu
- 4 Replies
- Last post
by Bite Qiu - MSFT
- Hi all, I need to play with image magick on dialog based application of vc++(MFC) and i have installed the image magic(dynamic dll of binary version). when i use the below code snippet,got runtime error..... Code:
Code Snippet
#include Magick++.h #include iostream using namespace std; using namespace Magick; { Image img; img.read("c:\\logo.jpg"); } Error is: Unhandled ex
-
- MFC based applications fail to compile
by steanson
- 3 Replies
- Last post
by Damien Watkins - MSFT
- Hi I'm using visual studio 2003, and trying to create MFC style applications and dialogs.
Before adding any code I test compile.
And the following errors appear:
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afx.h(1499): error C2059: syntax error : 'string' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afx.h(1518): error C2059: syntax error
-
- declaring zero size array in vc++
by pavan_734
- 18 Replies
- Last post
by pavan_734
- Hi,
Suppose I have defined an empty array like this:
int array[] = { };
This will compile in linux but Iam getting following error in windows:
error C2466: cannot allocate an array of constant size 0
What is the work around for this problem
-
- How to remap a char[] to an int[] without a loop?
by ChrisErven
- 11 Replies
- Last post
by ChrisErven
- Hi, I have a quick question, I have a C++ Dll app that grabs data through the USB interface. The USB interface requires a char[] (a char array) to be passed into the read argument, but the data it returns is infact an integer (4 chars make up each int). Rather then looping through the char array and converting every 4 chars to an int and then sticking that int into a new int array, I was hoping t
-
- Can't hide invisible chars
by Logan Starkenburg
- 3 Replies
- Last post
by Logan Starkenburg
- In VS2005, I accidentally hit some keyboard shortcut that made invisible characters (returns, tabs, spaces, end of file) show up in the text editor. I can't figure out how exactly I made this happen, or how to change it back (it can be kind of tough looking at the cluttered code). Couldn't find the option in the Text Editor section in Tools->Options.
Thanks!
-
- Where to download vc++ 2003?
by Stany01
- 2 Replies
- Last post
by Frank Boyne
- I can't find a download link to visual c++ studio 2003. I know about 2005. I just need 2003.
-
- running exe file (external program)
by Aljkljl
- 5 Replies
- Last post
by Aljkljl
- Hi, programing in c++ windows forms, trying to run dotnetfx3setup.exe from my program and control this process the must i can. the essencial code:: Process ^frame = gcnew Process(); frame->Start("c:\\dotnetfx3setup.exe"); frame->WaitForExit(); dotnetfx3setup.exe starts and install, but WaitForExit raises a exception,
System.InvalidOperationException: Nao existe nenhu
-
- diff between MFC wizard(dll) and MFC wizard(exe).
by venubabu
- 4 Replies
- Last post
by venubabu
- i am the new comer to vc++. i want to diff between MFC wizard(dll) and MFC wizard(exe). any body ple give me the answer
-
- Compiling a VC++ 6.0 with VC++ 8.0
by agustin_m
- 5 Replies
- Last post
by agustin_m
- Hello,
I have a project that was created/build using VC++ 6.0, the project uses a third party library iconnect.lib that was created with VC++ 6.0. I am trying to compile the project using VC++ 8.0 but I get a lot of linker errors - some of those errors are below. Note: the project compiles without errors or warnings when using VC++ 6.0.
Can someone tell me what I need to do to get my project
-
- Project Tries To Build Even If A Depenency Failed
by makefile
- 6 Replies
- Last post
by makefile
- Hello. During a whole-solution build, if an individual project fails to build, then Visual Studio still attempts to build all projects which depend on this failed project. This causes solution builds that are destined to fail to be needlessly long, and makes it difficult to determine the root cause of a failure, because of all the useless noise in the signal. How do I configure Visual Studio to no
-
- Debugging: Run-Time Check Failure #2 - Stack around the variable 'LoggerThread' was corrupted.
by Sam Hobbs
- 14 Replies
- Last post
by Tawhir
- I am getting:
Run-Time Check Failure #2 - Stack around the variable 'LoggerThread' was corrupted.
I have searched as much as I can for a description of how to diagnose, but I have not found anything. I don't know how to determine the specific address that is being corrupted. If I knew that, then I could of course set a breakpoint on the condition of that cha
-
- Internal compiler error
by badone
- 7 Replies
- Last post
by badone
- As of this morning following these updates last night;
Security Update for Microsoft .NET Framework, Version 2.0 (KB928365)
Security Update for Microsoft .NET Framework, Version 1.1 Service Pack 1 (KB928366)
Code that compiled just fine a couple of days ago now causes the following
1>------ Build started: Project: tsapi_form_test, Configuration: Debug Win32 ------
-
- C++ Library Issue
by Todd_Z_88
- 4 Replies
- Last post
by Simple Samples
- I am working on a project using VC++ .net, a language that I have no experience with. I am trying to import a library, and i get the following error: c:\********\Form1.h(3): fatal error C1083: Cannot open type library file: 'c:\*******\swapi.lib': Error loading type library/DLL. Is the library an improper format I know that its linked properly, but the program is failing to recognize it, i suppos
-
- Mixed Code Recomendation
by ajaimes
- 3 Replies
- Last post
by ajaimes
- Hello experts!
I have this silly question: I'm developing an asp.net application (C#) which depends on a C++/CLI dll (business layer). Mixing managed and unmanaged code is pretty simple in C++, but do you think there could be problems if a define a class like this:
public ref class MyClass {
private: int i;
public: MyClass(int i) (i);
}
or should it be defined as follows:
pu
-
- VS2005 float bug?
by Alan Loughnane
- 4 Replies
- Last post
by Malcolm McLean
- I am trying to subtract 3.0 from 3.55 in VS2005 C++ and get the result 0.54999995
The result is correct 0.55, using the same code in Visual Studio 6.
HELP !!
#include "stdafx.h"
int main(int argc, char* argv[]) { float a = 3.55; float b = 3.0; float c = a-b; return 0; }
-
- cannot execute the program after (just) adding member variable
by nizzy8
- 10 Replies
- Last post
by nizzy8
- Strange thing happens in my program. I just add one member variable from pop up windows on selected class. After i built the program, no error, no warning. But when I want to execute it, it won't show the program.
Then i remove the added member variable. I built the program, no error, no warning. I execute the program, it works.
Strange! Why is that happen I only add one member variable, but
-
- convesion error
by aguess
- 6 Replies
- Last post
by Giovanni Dicanio
- hi
i have a problem in conversion ,i am using the strcat_s to concatinate 02 string(CStringW) ,and i got an error message
Error 1 error C2664: 'strcat_s' : cannot convert parameter 1 from 'CStringW' to 'char *'
strcat_s( str1 ,3, str2 );
-
- How to start developing BHO, in vc++
by Phaneendra_77
- 1 Replies
- Last post
by maddman
- Hi,
i am trying to create BHO. i am using IE7
its not working for me.. any of u guys know this.. pls ping me .. i am in yahoo msngr
http://msdn. microsoft. com/library/ default.asp url=/library/ en-us/IETechCol/ cols/dnexpie/ expie_hello_ bho.asp
Thanks
-
- difference between a Debug version DLL and a Release version DLL
by Baba Goud
- 5 Replies
- Last post
by Permy
- HI,
i would like to know, how to differentiate bewtween a Debug version DLL and a Release version DLL, just by looking at the DLL, other than difference between size of the DLL is there any other way to find the differences.
Thanx in advance
-
- LNK2028 errors
by mike579577
- 2 Replies
- Last post
by Marius Bancila
- I get the following errors when migrating from 2003 to 2005
Util.obj : error LNK2028: unresolved token(0A00003C) "extern "C" int __stdcall GetFileVersionInfoA(char const *,unsigned long,unsigned long,void *)" ( GetFileVersionInfoA@@$$J216YGHPBDKKPAX@Z) referenced in function"class EZString __cdecl getFileVersionString(char const *)" ( getFileVersionString@@$$FYA
-
- call function in a C# class from a project created in Visual Studio C++
by Thore
- 7 Replies
- Last post
by Thore
- Hello
I have created a project in C++ an added an other project to the solution. This is a C# class library. What i want to do is to call a function in my C# library from my C++ code. Does anyone know how to do this I'm rather new at programming in C++.
I have added a reference to the C# class library, but now I'm blank. Don't know where to go next.
Are there a kind person out there that
-
- How to generate a standalone EXE file out of a VS 2003 project
by Liu Lei
- 13 Replies
- Last post
by Ben Anderson MSFT
- Hi
Now I am using Visual Studio .Net 2003 to design a software. Is there a way to generate a standalone .exe file that is independent of Visual Studio
I mean the generated .exe file should be able to run even if the user has not installed any VS.
Thanks a lot in advance!
-
- Deadlocks because of indirect calls to SendMessage.
by Alex Rich
- 1 Replies
- Last post
by Alan Chan - MSFT
- Hi, I have a thread which continuously updates a list view in a dialog. There is a critical section when the user clicks on a menu which performs actions on the list view, so I lock a mutex in the WindowProc and in the thread. The problem is that a deadlock occurs because the thread indirectly calls SendMessage (through functions like SetItemText), and this function doesn't return until the messag
-
- Reading a USB HID device
by Anonymous-mouse
- 5 Replies
- Last post
by simonjo
- I have a console device that connects to a USB port via USB-HID and uses the hid.dll driver. The console device generates keystrokes.
I would like to write a program that reads the keystrokes generated by the console device.
If I write a Windows program that traps WM_KEYDOWN it works fine, but the program must have focus. So if I can read the usb-hid device directly, the program do