|
I am sorry, but I have never had the problem you are encountering and other than my interpretation of what MSDN says about the problem I have no experience to guide you farther. I hope someone else on this board can help you.
I usually do not endorse cross posting but maybe you could try asking on the Visual Studio[^] forum if you do not get an answer here soon.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Thank you very much for trying helping me ! (-:
I'll ask in Visual Studio form.
Reuven
|
|
|
|
|
I found the way to fix the problem, and I've been started to learn VC++.NET.
The solution was:
1. In Computer Management, select device manager.
2. In View select show hidden devices.
3. Then you need to locate The Null device in the list of Not plug-and-play device managers.
4. As you find it you double-click it and validate it working properly and running (in device manager tab -> device status).
5. In the registry go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Null
and validate Hexadecimal-Value Named "Start" exists and had the value 1 (in hex).
If not - add it.
6. Restart your computer.
Now is the big problem :
========================
According to step 4 above, the Null device may not working properly (like I did).
To fix it you double-click it and choose to remove this device.
Then you doing steps 5 and 6 above.
After you restart the computer you need to run the Visual Studio Setup in repair mode - This will reinstall the Null device properly.
Restart your computer, hold up your fingers and pray to god when it restarts
After you restart the computer you can Build and even Run your C++ programs in visual studio !!!
|
|
|
|
|
Good stuff! Glad you got it working.
And thanks for following up by posting the solution to the problem. Now if anybody else ever has the same problem they can find the solution by searching this forum.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Why the variable bool is implemented as 8 bits ? 1 or 0 can we say it with 1 bit? or the minimum size the system can allocate comes in "Bytes" ?
|
|
|
|
|
Astricks wrote: the minimum size the system can allocate comes in "Bytes"
Yes, the smallest unit that the computer can store in memory is a BYTE. Although you can work with bits if you use the bitwise operators.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Imagine I have a string like "code,project,bob,vc++" and I have array or vector like
vector<string>vec_strings;
Is there any function that lets me break the words with "," delimiter and put them into the vector automatically? I prefer to use STL.
|
|
|
|
|
|
Hi friends,
I have a export function in the DLL.
When this function is to be called from other application,
it has to show the form in which the DLL was built with.
Can anyone help out?
For example
//DLLMain.cpp file
extern "C" __declspec(dllexport) void MyDLLFunction(double* Data,int nData)
{
//what code should I write to show the form
}
//GraphDlg.cpp
class CGraphDlg : public CDialog
{
// Construction
public:
CGraphDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CGraphDlg)
enum { IDD = IDD_GRAPH_DLG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGraphDlg)
public:
virtual void OnFinalRelease();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CGraphDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
|
|
|
|
|
Show the dialog modal or modeless?
To do it modally, something like:
extern "C" __declspec(dllexport) void MyDLLFunction(double* Data,int nData)
{
CGraphDlg GraphDlg(NULL);
if (IDOK == GraphDlg.DoModal())
{
//user clicked "ok" - do something
}
}
You may want to pass a parent window pointer to the dll function so the dialog will have a parent.
|
|
|
|
|
As this function is called repeatedly in the calling program,
modalless dialog is needed.
<br />
CGraphDlg *pDialog;<br />
<br />
BOOL CMyDLLApp::InitInstance()<br />
{<br />
pGraphDlg=new CGraphDlg;<br />
pGraphDlg->Create(IDD_GRAPH_DLG,NULL);<br />
return TRUE;<br />
}<br />
<br />
extern "C" __declspec(dllexport) void MyDLLFunction(double* Data,int nData)<br />
{<br />
AFX_MANAGE_STATE(AfxGetStaticModuleState());<br />
pDialog->ShowWindow(SW_SHOW);<br />
}<br />
But this code does not show the window.
I get Assertion Error.
The calling application is a C program.
So cannot pass the window pointer to the dll function.
Thanks for your answers.
|
|
|
|
|
The assertion is probably because the dialog has not been created.
Where do you call pDialog->Create()?
Mark
|
|
|
|
|
Can anyone point me to a compiler that can compile a 16 bit dll for windows
Thanks
|
|
|
|
|
We use Microsoft Visual C++ 1.52. You can get it if you have an MSDN subscription.
|
|
|
|
|
Mike Dimmick wrote: You can get it if you have an MSDN subscription.
i don't any other way i can get it?
You can't see me
|
|
|
|
|
the old age borland's do that also i believe, but i don't know much, as i never really played with borland C++...
|
|
|
|
|
Borland Turbo C++ 3.0 is free for download, try to google it. You'll also need DOS or Win95/98.
|
|
|
|
|
I m doing a project on outlook recovery ie it will recover deleted mails from pst file
I m able to save those mails which are present in outlook through coding in msg format but not geting how to get deleted mails
Can anybody please help me in this
-- modified at 5:53 Saturday 28th October, 2006
|
|
|
|
|
Dear All;
I write one multi threaded program in Visual C++.
It is responsible for reading raw data from hardware and analyse it.
I fine that my project hides from process view without any exception.
(I dont instruct the program to exit.)
Whould you please give me the reason of this problem.
Best Regards
Mahdi
|
|
|
|
|
Are you sure it still runs in the background?How do you term it as "hides" ?
And is it a console application?
:Gong: 歡迎光臨 吐 西批 :Gong:
|
|
|
|
|
Dear all
I Write a Multi threaded program which is responsible to read data from hardware and analyse it.
When I run the program all of threads work properly.
But after a while, one or some of threads die and no information is available from their state. ( I log live state of threads in a file. )
This abnormal behavior is computer dependent. On some computers I see such behavior but on another one, program works properly.
Do you know what is the reason of this problem.
Best Regards
Mahdi
|
|
|
|
|
if the thread is dying abnormally then it is posible that the OS is distorying the thread coz the thread might have gone into endless recurrsion.
-Prakash
|
|
|
|
|
no recurtion in progress.
Thanx for your advise.
|
|
|
|
|
So well does the thread disappears or does it end normally i.e the thread function returns normally.
-Prakash
|
|
|
|
|
I am not sure.
I should test.
|
|
|
|