-
- Exporting a class but can't use the public functions
by Gloria123
- 14 Replies
- Last post
by Gloria123
- Hi All,
I am upgrading a software package from VC++ 6.0 to Visual Studio 2005 and I am having trouble with a DLL that exports a class to be used by an EXE.
The DLL compiles fine and the EXE links to it without problem.
I can create an instance of the class but when I try to use the public functions it crashes.
If anyone can explain where I am going wrong, I would greatly appreciate
-
- help please!
by joelw7
- 5 Replies
- Last post
by einaros
- ok so far this is what ive got for my code im trying to figure out how to start my for loop that will receive the array and the int that represents the count(2) if anyone could help please im completley stumped. thanks in advance.
#include<iostream> using namespace std; struct Student { char Name[30]; floa
-
- program only breaks when not running with debugging
by mgilorma
- 14 Replies
- Last post
by P.GopalaKrishna
- I have an app that has some sort of memory problem going on where I get the following message sometimes: The instruction at 0x7c9111cd referenced memory at 0x0504da88. The memory could not be "read". The addresses change every time I get the message. I also get unhandled exception errors and sometimes the program just shuts down. I was thinking it had to do something with unmanaged mem
-
- 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!
-
- help!!!!!
by zoe
- 1 Replies
- Last post
by SvenC
- hello
can anyone help this message has started to appear and i have no idea what it is or how to repair it!!!! i have tried to restore to several earlier dates but i am not able to do this either
rthdcpl.exe illegal system relocation
the sysytem dll user32.dll was relocated in memory. the application will not run properly. the relocation occured because the dll c:\windowszsyst
-
- is it safe to use "free(*)" on a object allocated with "new" ????
by NeederOfVBHelp
- 6 Replies
- Last post
by Bruno van Dooren
- The title basically states it all. Here is an example: void* pointer; void method() {
MyObject* myObj = new MyObject(); pointer = (void*)myObj; free(pointer); } //would that type of code be safe
-
- error C3861: 'SHCreateDirectory': identifier not found
by LucyM
- 3 Replies
- Last post
by Simple Samples
- I am getting this error when I compile my code.
I had already included the function SHGetFolderPath
sucessfully, but when I added SHCreateDirectory(NULL, p_path)
it stopped compiling. I have the following headers
#include <windows.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include
-
- how can i list opened file(s) from given drive?
by neeocis
- 6 Replies
- Last post
by neeocis
- Hi all, i m really hang on this problem cud any one help me plz. The problem is: Suppose there are two files named File1.txt and File2.txt in drive H. and the File2.txt is opened. How can i get this opend file(s) name Input: Drive Name: H Output: File2.txt Thanks in advance Br, Neeocis
-
- 2005 upgrade ports Floating Point Consistency incorrectly
by Bill Cumming
- 11 Replies
- Last post
by ghawkesford
- I have a fair sized project in Visual C++ 2003 that I ported to Studio
2005. It's taken a few days to track it down, but I have discovered
that Studio ported the 2003 "Floating Point Consistency" project
setting (under C++ | Optimization) incorrectly to the 2005 "equivalent"
of "Floating Point Model" project setting (now under C++ | Code
Generation).
My 2003
-
- Release dll built with vs2005 fails load
by fchen
- 7 Replies
- Last post
by Ben Anderson MSFT
- One of my project using a dll developed in C. The project runs fine with VC6, VC2003 both debug and release build.
And It runs fine with VS2005 debug build.
But the application crashes during load using VS2005 release build.
Here is the debug trace. The WINDBG stack is not right
Thanks
FC.
First-chance exception at 0x7c9109f9 (ntdll.dll) in OpenController.
-
- DLL questions with Visual Studio using C++
by Jason Wilborn
- 14 Replies
- Last post
by Jason Wilborn
- I'm new to Visual Studio (I have VS 2005 Standard Edition) and I'm trying to learn how to code a DLL with some standard functions I use instead of including a cpp file into every project that needs it. Using the help I got a DLL to work with a Win32 project using __declspec ( dllexport ) and __declspec ( dllimport ). When I try a Windows Form Application I get lots of errors with the linker becaus
-
- Trying to pass a Function Name as an Argument to a function
by RayFantasia
- 5 Replies
- Last post
by valikac
- Greetings,
Let's try this again and I will try and be a little more clear in my questions.
I have created a class library, let's call it ClassA and in that class I have a function, lets call that FunctionA. FunctionA processes my data then calls another function, the name of which is passed as an argument to FunctionA, so I would declare my function as follows:
int ClassA :: FunctionA((in
-
- Error message of "error C2079: 'testB::a' uses undefined class 'testA"
by DamonPeng
- 2 Replies
- Last post
by DamonPeng
- Hi all, I do a test with two classes, each in a file as follows: //File: testA.h #pragma once #include "testB.h" class testB; class testA { public: testA(void); ~testA(void); testB B; int a; }; //File: testB.h #pragma once #include "testa.h" class testA; class testB { public: testB(void); ~testB(void); testA a; int b; }; When I compile them, I was given the
-
- Problem in Image Retrieving
by krishnasamy
- 14 Replies
- Last post
by Ramkrishna Pawar
- Hi,
I am retrieving the image from DLL through vc++ dll. Actually Image is retrieving in Callback function of main function. When I writing that image file inside of the Callback function then no problem in retrieving. At the same I want to send the Imagedata to the another function and write the same which cause the error.
Here I given that code,
//Callback function
pr
-
- vista, OpenEvent: Access is denied.
by youcai
- 5 Replies
- Last post
by Bite Qiu - MSFT
- Hi All, I am creating named event using CreateEvent from a Service.
Then, I inject some code to IE, in that code, I try to get the handle of the same named event using OpenEvent API , but it returns NULL. In this case GetLastError is returning 5, that is "Access denied".
The OS is vista x64, IE7.
Can you anyone help to solve this.
-
- Catching Unhandled Managed Exceptions from MFC
by Andrew Raymond
- 6 Replies
- Last post
by Andrew Raymond
- Is there any reasonable way to get CWinApp to catch .NET managed exceptions in the Windows message loop using its standard facility ( ProcessWndProcException ) at the moment they seem to throw all the way out of the appication without hitting that handler.
Andrew Raymond Mitchell1
-
- Running the default program for an file extension
by Rudolpho
- 2 Replies
- Last post
by Ted.
- Hi, From our app we want to start the default text editor set up in windows for .rtf files to edit an .rtf file. This works if we use ShellExecute. But we want the text editor to be finished before processing continues in our app. With .exe programs we can use CreateProcess combined with WaitForSingleObject to obtain this. Any suggestions how this could be accomplished for .rtf files and other not
-
- To stl::string does not work with std::cout
by pralay
- 9 Replies
- Last post
by Simple Samples
- std: tring str ="string";
cout << str; // error it does not work with msvc compiler
cout << str.c_str() // works
On net I found examples where string instance is directly given as input to cout.
Is the stl: tring version of msvc is different Does it not overload << operator
pralay
-
- C2679: Error - Can someone help me resolve this ambiguity?
by Simulacrum
- 10 Replies
- Last post
by Simulacrum
- Apparently the compiler can't resolve an ambiguity here between these two assignment operators. What makes these two ambiguous with one another Why can't the compiler distinguish between a parameterized type my template class Is there a way to fix this so that I can get the intended functionalities I want here in all cases I want a copy assignment operator and of course I want the smart pointer
-
- SDI Help Required ::"Missing ; before *"
by THE_SATAN
- 3 Replies
- Last post
by Simple Samples
- hi
in Sdi application i want the pointer of View class in my own defined class. how can i do it i've tried to do it by using the CView class object but it gives an error "Missing ; before *" at the line
CDocument* GetDocument() const; in the header file of my View class.
-
- [MFC] sub string
by aguess
- 8 Replies
- Last post
by Simple Samples
- hi
i have a problem to to get substring of string ,i used CStringW tree; tree = this->tree_db->m_noeud; tree->substr(1,5); but,that don't work ,can u give me a hand
-
- Help with dependencies of Visual C++ 2005
by madsravn
- 3 Replies
- Last post
by aao123
- Hey There. I'm developing in Visual C++ 2005 Express and I must say it is a pleassure. But somehow I'm the only one able to run the program among my friends (They are developers, they might be missing some files that I got when I installed the Microsoft Platform SDK or Visual C++ 2005 Express).. Could anyone think of which files these are Because none of the people I send my software to are able
-
- Not serializing two dimensional array correctly;
by Steve Jackson
- 2 Replies
- Last post
by Steve Jackson
- Hey all;
I am making a dos based othello game (class project). The details are not all that important, but the following classes are important for the question:
some classes:
class piece() -> Piece has a color (integer). It can be white,black, or empty.
class Board() -> Holds all of the data for game play, player names, scores, but most importantly - it has a Grid data member tha
-
- Process not terminated after closing application.
by GET&#64;h
- 10 Replies
- Last post
by GET@h
- Hi All,
I wrote an application in c++ listening to incoming UDP data from the network. When I close the application, the process is still alive and I can see it in the task manager even though I killed all my threads, disposed all the ressources and closed all opened sockets.
The process does not stay alive for a long time: The more my application runs, the longer the process stays alive aft
-
- Catching Error condition
by Anonymouce
- 8 Replies
- Last post
by Sdi
- Greetings all,
I have recently been tasked to modify a legacy VC++ (MFC) application with poor exception handling mechanism into something more manageable. Towards that end, the least I would like to do is to implement a functionality that can catch any exception - and by that I mean any exception that occurs, so that we can better report the error and take actions to do subsequent tasks such a