|
Use
#include "CSpreadSheet.h"
It should work.
|
|
|
|
|
thanks error solved.
modified on Tuesday, July 7, 2009 2:35 AM
|
|
|
|
|
Pick a book on C++ and start reading.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
i have developed SDI application and now i want to load a file from file menu of SDI application. where i have to write the code for file open menu.
|
|
|
|
|
when you develop an SDI Application, you get a default menu. In the File menu there is an option to open the file.
|
|
|
|
|
thanks but if i want to modify default menu according to my needs then where can i do it.
|
|
|
|
|
Document class
Inside the OnOpenDocument().
|
|
|
|
|
i m using vs 2005 and there is no onopendocument() i think.
|
|
|
|
|
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPEWatcherDoc)
public:
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
//}}AFX_VIRTUAL
Do u tried to add the code?
I never used vs2005, so i can only guess, they didnt removed it.
|
|
|
|
|
|
how to create common memory and acheive synchronization for two applications running parallally
kir_MFC
|
|
|
|
|
create a shared memory and with a semaphore or mutex so as to aviod dead lock.
|
|
|
|
|
http://msdn.microsoft.com/en-us/library/aa366551(VS.85).aspx
|
|
|
|
|
HI, i am having problem with converting my c++ class to dll. The problem is the following.
i have a class that i want to export, there are two private variables in the class, one of them is
a struct. the variables are initialized in the constructor. In my ap, i created a object of my class and then delete it. Looks pretty straight forward, however, when deleting the object i get a error message "Debug Error". If i don't initialize the variables, delete is ok. if i memset the struct variable,i get a "scaler deleting destructor" error. Anyone got any idea why the dll behaves like this?
----------------------------------------AP------------------------------------
CIPCamDll *a = new CIPCamDll();
delete a;
---------------------------------------.h--------------------------------------
#ifdef IPCAMDLL_EXPORTS
#define IPCAMDLL_API __declspec(dllexport)
#else
#define IPCAMDLL_API __declspec(dllimport)
#endif
typedef struct s
{
int abcd;
}s;
class IPCAMDLL_API CIPCamDll {
public:
CIPCamDll(void);
CIPCamDll(char* para_address);
~CIPCamDll(void);
private:
int session_id;
s m_t;
};
--------------------------------------------------------------------------------
--------------------------.cpp---------------------------------------------------
CIPCamDll::CIPCamDll()
{
session_id = 13;
return;
}
CIPCamDll::CIPCamDll(char* para_address)
{
return;
}
CIPCamDll::~CIPCamDll()
{
return;
}
------------------------------------------------.cpp-------------------------------
|
|
|
|
|
Where is the memset?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
HI, thanks for the reply, i put the memset in the constructor.
i am guessing that it has something do to with different heap memory allocated for
dll, and AP?
--------------------------.cpp---------------------------------------------------
CIPCamDll::CIPCamDll()
{
memset(&m_t,0,sizeof(s));
session_id = 13;
return;
}
------------------------.cpp------------------------------------------
|
|
|
|
|
Make sure your exe and dll use the same variant (static/dynamic linking) of the C run-time library.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
hi
I use Turbo C3.0.How to:display file.bmp> 256 color VGA or with what is
.
I have hard drive 80G>Devide:C:\,D:\,E:\
How to write bootsec boot C:\,not format D,E
How to write & load,init kernel with TC 3.0 ?
How to:compile kernel with TC 3.0?
-----------
How to:Draw window(GUI) have close button,resize,edit box
with VGA
Please, full code & guide:compile writing kernel
Please, full code & guide: show file.bmp > 256 color on screen
Using TC 3.0
Thanks
Vietnam
by;tuan1111
|
|
|
|
|
Are u sure you can compile Windows kernel?
And i dont think you can create the windows GUI directly with a VGA using tc3.0
Windows actually works on wrapper code written on VC++ over the lower layer driver and C++ code.
Yes you can create those but it will take a lot of effort.
i.e you have a write wrapper
|
|
|
|
|
What does this message mean in a debug mode?
First-chance exception at 0x5d0c373e in DemoKey.exe: 0xC0000005: Access violation writing location 0x004456ec.
I get this when I am exiting my application which is property sheet based?
What have I not done before exiting the application or is it Normal?
Thank in advance
|
|
|
|
|
Did you use of pointers in your program?
|
|
|
|
|
|
Use of invalid pointer.
Pointer which is deleted most probably
so once you delete a pointer
intialize it to zero.
|
|
|
|
|
I get this when I am exiting my application which is property sheet based?
So why on Exit and not before?
|
|
|
|
|
when exiting, it deleting some pointer which is already deleted.
Check all the pointers.
|
|
|
|