-
- message localization
by George2
- 2 Replies
- Last post
by George2
- Hello everyone,
I want to print out and log localized message according to current locale of machine. For example, if I am always use MESSAGE_ERROR macro in my program, and I want to replace it with "Error" when the locale is en_US and be replaced with French if the locale if Fr.
I am wondering whether Visual Studio 2005 provide some existing technology or some resource file which
-
- cannot find dll
by brybot
- 12 Replies
- Last post
by Bite Qiu - MSFT
- I have a program written in C# and a DLL written in C++. The program works fine on my computer if I place the DLL in the same folder as the executable. I can even change the location of both files and it still works fine on my computer. As soon as I put it on another computer, I get an error saying it cannot locate the DLL. I have tried adding it as a resource which doesnt work, tried putting it i
-
- Member function pointers
by JefPatat
- 7 Replies
- Last post
by JefPatat
- Hi all,
you guys helped me out before, I hope you can with this thing I'm trying, actually it is working but I would like to do it in another cleaner/better way for learning purposes. I work within the limitations of a framework which is written by other people and for several reasons I did some 'hacking' to achieve better results.
I have a window class (a bit like a form) in which I have se
-
- error LNK2005
by Anonymous559433
- 2 Replies
- Last post
by Bite Qiu - MSFT
- Hi,
i am getting following errors when i buld my project (DBTask).
i checked my advanced settings, it shows _cdecl. and i havn't used std_call functions in my project
DBTask error LNK2005: "void * __cdecl operator new(unsigned int)" ( 2@YAPAXI@Z ) already defined in libcpmtd.lib(newop.obj) DBTask error LNK2005: "void __cdecl operator delete(void *)" ( 3@YAXPAX@Z
-
- Find a especific String inside a txt file
by JGLP
- 9 Replies
- Last post
by JGLP
- Hi I need to search a txt file and find a especific string, and then i need to return the rest of the line. For example , a have a text file like this: [example.txt] abc={a,b,c} def={d,e,f} ghi={g,h,i} [/example.txt] And now i need to search for "def", and i need to get in return the "{d,e,f}" Anyone know how can i do this and show a small example please thanks!
-
- Link errro help
by miaofeng
- 5 Replies
- Last post
by miaofeng
- I write a class library with manage c++.When I compile this library,an error happened.
the information is:LNK2001: unresolved external symbol __CorDllMain@12 . I have no idea how to fix this.
It's quite strange that if I setting the library as static library ,can be compiled successfully.I find an article about link 2001 in this forum and following the suggestion,but still can not work.anyon
-
- New to Visual C++
by Diver88888
- 4 Replies
- Last post
by Anton
- Hello,
I am trying to tie a CLOSE button to a form..
Any idea about the code needed to do that
Appreciate it..
Diver
-
- From CImage object to Bitmap object
by lewix
- 2 Replies
- Last post
by neobash
- Is it possible to assign the "image value" of a CImage object to a Bitmap object I have to use CBitmap class but i have to load a jpg file. Like this code: --------------------------------------------- CImage CImg; CImg.Load("c:\\background.jpg"); CBitmap bitmap; // bitmap = CImg; ! How can I do ------------------------------------- Thanx
-
- Initialization of static enum variable fails in template (migr. c++ v6 to visual studio 2005)
by tesuji
- 2 Replies
- Last post
by tesuji
- Migrating from visual c++ (version6) to visual studio c++ 2005 recently i've got errors when compiling this code: #include "mave.hpp" template <typename T> class matrix : virtual public mave<T> { public: enum enLineSolver { GAUSS, HOUSEHOLDER, GIVENS, SHOLESKY}; protected: static enLineSolver lineSolver; }; // Initialization of lineSolver: template <typename T> matr
-
- How to deploy CRT as a shared assembly without using MSI, ClickOnce or vcredist_x86.exe?
by kto
- 5 Replies
- Last post
by Bite Qiu - MSFT
- I'm trying to deploy an application built with VC 2005. It includes few DLLs which might be called by other components than my own. I'm using dynamic linking so the only option is to have the runtime-libraries installed as shared assemblies. So far I haven't found a solution which wouldn't be based on either using MSI with merge modules, ClickOnce or vcredist_x86.exe. None of these is suitable in
-
- Detour error
by qzy
- 14 Replies
- Last post
by qzy
- Hi all,
I'm not sure whether this is the right place to post this... I'm recently trying to use Detour to intercept Win32 API calls of other processes. I'm using Windows XP SP2.
It's great that Detour has an sample that actually does this for me. And I've already successfully got it running. The sample name is 'traceapi'. Basically the sample generates the 'traceapi.dll' which can in
-
- passing argument to main during debug
by jpo
- 1 Replies
- Last post
by Maksim Libenson
- Hi,
newbie question: How to pass an command line argument to program that is debuged in VS 2005 EE cpp
What I'm working on is a command line program, that takes some arguments when it is called. During debug i can only get argc=1. Is there a way to pass more arguments, so i could test program for argc>1.
Thanks,
Justas
-
- Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host?
by georgeob
- 14 Replies
- Last post
by georgeob
- Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host
-
- LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'
by Davaris
- 3 Replies
- Last post
by crazygrey
- Hi Everyone,
I'm trying to build a project using Visual C++ Express on Win2000 and I get this linker error.
LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'
I've searched all over the net and none of the solutions offered work.
The file exists in two places on my machine:
C:\Program Files\Microsoft Platform SDK\Lib\AMD64\atlmfc
C:\Program Files\Microsoft Platform SDK\Li
-
- Pointer (new to c++)
by angela_msn
- 5 Replies
- Last post
by Sdi
- Hi , I am very new to C++. I am currently studying pointer and seem to have a problem of memory leakage.
void main()
{
char * dateStamp= new char [20];
char * tempDateStamp= new char [20];
GetDate (tempDateStamp);
strcpy (dateStamp,tempDateStamp);
delete dateStamp;
delete tempDateStamp; //ERROR in here
}
void GetDate(char *&
-
- GDI+ Bitmap::GetHBITMAP() Background Color
by Mark Salsbery &#91;MVP
- 1 Replies
- Last post
by Damien Watkins - MSFT
- Using the GDI+ Bitmap::GetHBITMAP() method to obtain a DDB from a
GDI+ Bitmap with transparency, I am only getting the blue
component of the color I specify as the background color in the
resulting bitmap¡¯s background pixels.
Am I doing something wrong here
Code to reproduce the problem follows.
Thanks
Mark
&nb
-
- Calling a function from a DLL - couterintuitive
by iterationx
- 14 Replies
- Last post
by Nishant Sivakumar
- Hi This is a bit tricky, so I thought I'd ask before I get too deep. I'm building a DLL in C++ that will be called by a VB program. The DLL is an unmanaged to managed wrapper. I call unmanaged functions in VB with the DLL - no problem. The problem is the unmanaged C++ receives data from a socket that needs to get to the VB program. So I need to do two things 1) Have the unmanaged C++ call a manag
-
- error C2065: '__noop' : undeclared identifier
by vish_N
- 2 Replies
- Last post
by Viorel.
- I am trying to compile a DirectX Audio example from DirectX 9 SDK sample from Microsoft. The file is playsound.cpp. I am using VC++ 6.0. I have Platform SDK installed. I get this error "error C2065: '__noop' : undeclared identifier" for dxutmisc.h. Any idea why I had other errors such as -DXUT requires a Unicode build -error about DWORD_PTR which I solved via suggestions from various fo
-
- Inheritence.
by David S. Anderson
- 7 Replies
- Last post
by Ðãv? S. Â??????
- Language: C++/CLI --------------------------------------- Is there any way we can make a class that inherits from sealed classes such as the String class, or is this just not possible
-
- Just wondering
by Lightknight240
- 1 Replies
- Last post
by einaros
- I was wondering what is C++ ment for like C# is ment for 360 and pc games cuz Im borowing a book from 1997 from my dad thats about C++ and I was wondering whats it mostly used for. I was also wondering if you guys(or girls) can refer me to some websites about C++ and C# because I want to get to know about them befor I go to collage in 3 years or so cuz I want to be a game or softwere develeper whe
-
- Question regarding System::String type
by corona
- 3 Replies
- Last post
by corona
- Hello, i'm new to .net framework programming in c++ and i have a question regarding System:: String.
Code Snippet
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
}
For example in the above snippet, i am trying to make the program such that when button1 is clicked, a certain System:: String type string is passed as a parameter to another
-
- Indicating a service failure.
by Pikafunk
- 1 Replies
- Last post
by Damien Watkins - MSFT
- I am looking for a way to inform the Service Control Manager that my service has errored/crashed in such a way that the service recovery option will then restart the service. Is this something that can be accomplished with SetServiceStatus() or is there some other feature i should be using
-
- calculate elapsed time
by George2
- 1 Replies
- Last post
by einaros
- Hello everyone,
I want to record the elapsed time for a specific function invocation. What is the most accurate way I should use on Windows platform Which function call should I use
regards, George
-
- Can't call to AfxRegisterWndClass from Managed C++
by Uri1976
- 0 Replies
- Last post
by Uri1976
- Hi all,
I have a legacy C++ code (not /clr enabled) which creates a windows message class using HWND_MESSAGE flag.
I have used this class so far without any problem.
Now I created a managed C++ class, which creates an instance of this message class. I got an runtime error during initializaton, which is coming from AfxRegisterWndClass line.
Does anybody have an answer what is the prob
-
- C++ DLL help
by Warren2x
- 11 Replies
- Last post
by Warren2x
- I have two functions written in C++ that need to be compiled into a DLL for use in a VB.NET application.
The function prototypes are defined as:
Code Block
double _stdcall ae_double_out ( unsigned char * buf , double value )
double _stdcall ae_double_in ( unsigned char * buf )
The implementation file has the:
Code Bloc