-
- Unresolved external using a namespace from a DLL
by cristit
- 3 Replies
- Last post
by cristit
- Hi, Under Visual Studio 2003, I have a DLL that exports a class, and I am trying to use the class from the DLL in a simple test application. The class in the DLL is defined inside a namespace. The problem is that the test application builds fine in debug mode, but I get a link error in release mode:
-
- how to copy all elements of a 2d array to another 2d array?
by monchhib
- 4 Replies
- Last post
by monchhib
- I just know the copyTo function is only suitable for 1-d array . But how about 2-d array is there any faster and easier method that can copy all elements to another 2d array without using any loops to go through each elements thanks!!
-
- Debugging ActiveX
by Dalai
- 2 Replies
- Last post
by Damien Watkins - MSFT
- I ran the ActiveX Control Test Container "tstcon32.exe" containing my ActiveX and managed to successfully hit my breakpoints in the C++ ActiveX code using both "Attach to Process" and Property Pages Debug Command. I ran my VB application containing my ActiveX and nothing gets hit. I think this may have something to do with the wrong type of degugger being used or maybe this is
-
- Help creating a new project
by jone1113
- 2 Replies
- Last post
by Simple Samples
- Hi everyone, I just installed visual c++ 2005 express on my computer and when I try to create a new win 32 project, I get a blank window that I have to x out of then i get two error messages failed to navigate to C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\HTML\1033\default.htm then The operation could not be completed. Unspecified error. I have had this prob
-
- few queries
by sGurpreet
- 1 Replies
- Last post
by einaros
- hi frnds,
i have two question
1) what is the type of pointer
2) difference between oops and procedure oriented approach
-
- A very strange exception problem
by hipswich
- 14 Replies
- Last post
by hipswich
- Hi all,
I have a very weird problem and hope someone can shed some light on this. I have two statements if (A == B) and if (bFlag) that seem to be fine no matter whether I check them separately or their combination. Int the the following code, exception is caught only at location 5 repeatedly. No exception has ever been caught at other locations. I cannot make any sense out of it.
-
- 64 bit XP and system32 folder
by xMonty
- 5 Replies
- Last post
by kirants
- This Code fails on XP 64 bit even if the file exists in the target folder
The exe is 32 bit
CString str;
str = "C:\\WINDOWS\\system32\\drivers\\acpi.sys";
if(!PathFileExists(str))
{ //Fails but the file exists and can be seen in explorer
}
i can paste any file in that folder (text file or whatever) and the result will be file not found (errcode=2)
-
- I met a very strange problem
by stroller
- 3 Replies
- Last post
by stroller
- please see the code and the result £º #include<fstream> std::ofstream out("Name.txt"); class Monitor{ public: static int number; void incident(){number++;} void print(){ out<<"inciden is called "<<number<<std::endl; } void decrement(){number--;} ~Monitor(){ out<<"~Monitor is called"
-
- Getting VC++ 6.0 projects to use new UI elements in VS 2005
by Merzak
- 5 Replies
- Last post
by Merzak
- I've imported a project I created in Visual C++ 6.0 to Visual Studio 2005. However, the buttons and other controls are still using the old visual style. If I create a new project, then I get the new buttons and controls.
Is there a way to make my old projects use the new controls
-
- Partial template specialization in VS2005
by Alexander Shamin
- 2 Replies
- Last post
by Alexander Shamin
- Hi,
The code below compiles OK when class templates are fully specialized i.e. when both template parameters are specified. The partial specialization however causes compiler error:
error C2621: member 'ARectangle<T,n>: oint' of union 'ARectangle<T,n>::<unnamed-tag>' has copy constructor
There are no copy constructors here, at least explicitly declared ones.
-
- C file does not compile It gives a link error on Only one VS2005+Sp1 setup
by neom
- 7 Replies
- Last post
by neom
- I have a c++ project which includes a .h and .c file, it compiles fine on one PC but fails on another with a link error. When i do a linker /Verbose it shows that the c file is not compiled in one machine against other. Also when i right click the c file on the bad setup, the compile icon is greyed out. Anybody has any suggestions
Thanks in advance
-
- error LNK2019, error LNK2001 VS 2005
by Zeba
- 2 Replies
- Last post
by Zeba
- I am trying to compile an older application with VS2005. I get the linker errors for a library which is compiled in older versions of Visual Studio and cannot be recompiled in VS2005.
I can possibly recompile it in the older version of VS if required though.
Is there a way to get around this
I am in a time crunch and will appretiate all help.
-
- MFC explorer style application
by sairaj
- 4 Replies
- Last post
by Simple Samples
- hi i have to create windows explorer style application. when i clicked a button in my dialog application. my parent is dialog only. how to open an explorer window on clicking a button. pls guide me
-
- Dll exporting .lib file
by bookysmell2004
- 4 Replies
- Last post
by bookysmell2004
- Hi again. When I create and build a Win32 Dynamic Link Library Project with my default settings in the output folder I get 5 files and among them a .lib file which is used for linking. Now... I have created a dynamic library project with the same way and I am trying to link it dynamically with a Win32 Project in the same solution. The problem is that there is no .lib file as output of the dll proj
-
- Adding Class results in : Code Model not available, cannot add class
by ceayea
- 3 Replies
- Last post
by Sahir Shah
- I am using: Visual Studio 2005 Version 8.0.50727.762 .NET Framework Version 2.0.50727
My OS: Windows 2000 Professional Version 5.0.2195 Service Pack 4 Build 2195
I create a new Project and selected, Visual C++ -> MFC -> MFC Application and name it Test_MFC.
I right-click on the Test+MFC Project and select, Add -> Class. In the resulting pop-up I select, C++ -> C++
-
- COM object creation problem.
by Wasabi_Sushi
- 4 Replies
- Last post
by Wasabi_Sushi
- I posted this on a different forum and was chased off. I have an app I am trying to get to work using the SAPI SDK. The problem is that I am trying to create an object.
The offending code is something like this:
hr = CoInitializeEx( NULL, COINIT_MULTITHREADED | COINIT_SPEED_OVER_MEMORY );
// at this point hr == SUCCESS
hr = m_cpVoice.CoCreateInstance( __uuidof( ISpVoice ) );
-
- Finding the bitmapinfo
by emedlin
- 7 Replies
- Last post
by emedlin
- I need the bitmapinfo to pass to AVIStreamSetFormat. So, far I cannot find away to get this information. I am sure I am overlooking something since I am new at windows programming. I have the following code: void CAVI::AddFrame(Gdiplus::Bitmap* pFrame) { // get bitmap info HBITMAP hBmp; pFrame->GetHBITMAP(Gdiplus::Color(0,0,0,0), &hBmp); BITMAP bitmap; GetObject(hBmp, sizeof(bitma
-
- What is the significance of link.exe.config and cl.exe.config files in VS2003
by Anonymous08
- 1 Replies
- Last post
by Mattias Sjogren
- Hi,
What is the usage of the files link.exe.config and cl.exe.config when compiling the code with cl.exe.
Does it affect only .NET code
Does if have any effect on unmanaged C++ code
Thanks.
-
- Store CStrings to a txt file
by Bj&#248;rn Liene Gunde
- 13 Replies
- Last post
by Bjorn Liene Gundersen
- Hi.
Could someone type me a quik example of a function who create at textfile with name Log at C:\ZigBeeLogs\ and write a CString to that txt file twice, line after line.
I have tried to do this with CStdioFile, but I'm not very familiar with such C++ programming, so a simle example how to do this would be nice.
Best Regards Bjorn Liene Gundersen, Norway.
-
- CoCreateInstance() fails when being called for the second time
by James.Wong
- 3 Replies
- Last post
by James.Wong
- Hi all,
We have a legacy system developed in Visual C++ 6.0, which uses DLLs to extend its functions. For some reason, DLLs have to be loaded and freed multiple times without exiting the legacy system.
To implement some function in the legacy system, we need to use a COM developed in Visual C# 2005 by another project team. The COM is multi-thread.
So I developed a DLL in VC 6,
-
- Closing a process in a givin time
by NoFearXD
- 2 Replies
- Last post
by sunil_singhal_10e2aa
- Hey guys, my first post here, I hope its in the right section. Okay well this has been a problem for some days know. What I'm trying to to do is to close a process in a user givin time. I know the code for closing the process. But I having trouble figuring out how to set a kind of a timer I guess. Example: The user will type in 5min then in 5min the process will terminated. Sorry if its confusing,
-
- Mix C++ application deployment
by M.Joe
- 8 Replies
- Last post
by M.Joe
- I had write the simple c++ 'clr console' program. In the main entry point function there has such following code:
Code Snippet
_tprintf(_T( "Hello World!\n" ));
System::Console::WriteLine(L "I'm managed 'Hello World'.\n" );
return 0;
Then, build it with /clr compiler option, and /MANIFEST link option, and built it ok.
So, I run it on my win2k
-
- StreamWriter write to a file from textbox form entry
by Paulothisland
- 6 Replies
- Last post
by scottishPaul
- Hi,
New this week to Visual C++ 2005 Express edition. No C experience at all. Got lots of books though.
All I really want to achieve at the moment is a little form that has a text box, a read, write and clear button. So whatever goes in the text box is written to a local text file, clear gets rid of the text on the file and read reads the text from the file and displays it in the tex
-
- How to create a "standard" DLL
by mjsalvador
- 9 Replies
- Last post
by Shakje
- Hello,
I am having problems with creating a DLL to be used in another application. I am using VS2003. I would like to export some classes in this DLL, and use them afterwards.
First, which type of proyect should I create "MFC DLL" I create a "MFC DLL" proyect, add the files (.h and .cpp) which have these classes to the proyect, and declare the classes with the AFX_EXT_
-
- Images in Console Application?
by jmac
- 7 Replies
- Last post
by Simple Samples
- Not sure what kind of response Im going to get from this... I want to add a bitmap jpg or gif image into a console application for a game.. I've seen custom libraries made for it but have no idea how to get started for this.
Can you use API stuff Or what is the easiest/best way to go if possible at all... any help would be appreciated.