|
I just read your first post again. You said that you made a static library ? So why do you export your functions (this is used only for dll's AFAIK) ?
|
|
|
|
|
Yes indeed it's a static library. I ran out of idea so I decided to try that, but even without the export it was no use. Apparently, the static library is C++ based, and the win32 app is a C based. So when I tried to add this around the include header in the win32 app, the link error remained.
#ifdef __cplusplus
extern "C" {
#endif
#include "MyHeader.h"
#ifdef __cplusplus
}
#endif
|
|
|
|
|
Dear all.
for one application I want to see which DMA and IRQ is assigned to parallel port.
Does any one know how to extract these data.
Regards
Mahdi
|
|
|
|
|
hi i downloaded code to add html help from the link
http://www.codeproject.com/useritems/HTMLHelp.asp[^]
and when i run it, its giving an error with respect to the line "HtmlHelp(this->m_hWnd, "scan_help.chm::/getting_.htm", HH_DISPLAY_TOPIC, NULL);"
error is "error C2660: 'CWnd::HtmlHelpA' : function does not take 4 arguments"
any idea on what to be done to run the program so that i can follow that program to link html help to my application
harsha
|
|
|
|
|
Can you show code
Declare of CWnd::HtmlHelp on the MSDN is
virtual void HtmlHelp(
DWORD_PTR dwData,
UINT nCmd = 0x000F
);
|
|
|
|
|
void CTestHelpDlg::OnHelp()
{
// TODO: Add your control notification handler code here
HtmlHelp(this->m_hWnd, "scan_help.chm::/getting_.htm", HH_DISPLAY_TOPIC, NULL);
}
and my ".h" file is
// TestHelpDlg.h : header file
//
#if !defined(AFX_TESTHELPDLG_H__4C88ADC9_77D8_4344_ACF6_92E5910070E8__INCLUDED_)
#define AFX_TESTHELPDLG_H__4C88ADC9_77D8_4344_ACF6_92E5910070E8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTestHelpDlg dialog
class CTestHelpDlg : public CDialog
{
// Construction
public:
CTestHelpDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTestHelpDlg)
enum { IDD = IDD_TESTHELP_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestHelpDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTestHelpDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnHelp();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTHELPDLG_H__4C88ADC9_77D8_4344_ACF6_92E5910070E8__INCLUDED_)
please see the link in my ques for total code..
harsha
|
|
|
|
|
What happens if you use of ::HtmlHelp instead HtmlHelp
|
|
|
|
|
error is gone when i put it.. but on clicking Help button in dialog html help page is not opening.. ? any clue on what to do ?
harsha
|
|
|
|
|
|
Creating and Using HTML Help in MFC applications
[^]
i am using this onl.. its not happening ..the error i asked intially is coming even when i download this code and run it directly with out any changes in my comp..not able to figure out whats the problem
harsha
|
|
|
|
|
See CWinApp::HtmlHelp[^] but see About the HTMLHelp API Function on this link(pszFile and uCommand )
|
|
|
|
|
Hi
All
I want to change font of Dialog box in VC++ 6.0, so how to use SetFont funtion.So anybody have code to change font of dialog box, plz forward me.
Thanks in Advance
Atul Mahajan
|
|
|
|
|
|
while I try to connect Database using DAO , Iam getting this error
Unrecognized database format ' c:\......\ xxx.mdb '
how to connect the Database ?
plz guide me.
|
|
|
|
|
|
You might also try adding the following line to the InitInstance in your application:
AfxGetModuleState()->m_dwVersion = 0x0601;
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
Hi all.
Can I write code that works in Win32 and dont works in Service?
|
|
|
|
|
Can you explain more and provide some details on exactly what you want to achieve?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
hi.
In my service I use 'CopyFile', 'CreateFile' and some more function that worke
with files and if I try copy, rename or delete some file, My service stoped.
Sow I wont to konw why?
|
|
|
|
|
david bagaturia wrote: In my service I use 'CopyFile', 'CreateFile' and some more function that worke with files and if I try copy, rename or delete some file, My service stoped.
Have you handled the exceptions properly, especially during file handling?
Absence is to love what wind is to fire; it extinguishes the small, it enkindles the great - Comte Debussy-Rabutin
|
|
|
|
|
Yes I have.
But . . .
Sometimes I can copy file, sometimes can't . . .
Sometimes Service works, but max 5 sec.
and sometimes it stops after 1 sec.
But my Service Manager tell me that service is runing.
I write Win32 project and paste thare my code [I use Sellect all ---> copy--> paste] and thare it works. I run this progrum 3 day and Rezult wos 100% but in service rezult is 0%.
Can help?
|
|
|
|
|
Does your service create a log? Have you tried analysing the log for possible causes?
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
I have made menu using staictext control and convert all static text into Hyperlink.
through the following code.
<br />
hwndLnkSignUp = GetDlgItem(hDlg,IDC_STATIC_SIGNUP);<br />
ConvertStaticToHyperlink(hwndLnkSignUp);<br />
Now ,I want replace the existing font of static text with my custom
fonts and style also want to make it transparent.
-- modified at 5:51 Monday 5th March, 2007
|
|
|
|
|
Hello,
I wnat to create my own child windows without document - view architecture.But I am facing problems in understanding fundamental theory relating CMDIFrameWnd, CMDIChildWnd and CView.Is there any article that can explain me the relations and how to go about it.
Prithaa
|
|
|
|
|
I made it in this way :
I derive my own Frame from CMDIChildWnd.
At the construction of this Frame i create the Initial-View with the function "CreateView"
So you don't want to use the Templates?
I also don't use the templates, but i have many troubles. Because if you don't
use the standard-MFC-Way you need to manage yourself all functionalities
( for example that the focus rests on the control if you switch to another application, ... )
So, i'm not really the best to explain you these things.
But if i can help you, i will do my best
|
|
|
|