|
like
image link:
http://explorer.10169.net/myquestion.jpg
please help me!
How are you,every one
|
|
|
|
|
if the button is not on border (NC area), just move it to there by MoveWindow(). otherwise, u need to draw NC area urself to prevent the button from being painted (covered) by default NC drawing.
includeh10
|
|
|
|
|
I am using Visual C++ 6.0 MFC.
My database in SQL SERVER 2000
How can i Execute a data manipulation query(Delete, insert,update) with OLE DB data access ?
We use OLE DB PROVIDER or CONSUMER ?
And How to do it
I am a beginer
|
|
|
|
|
See if this helps u, do some R&D
//include sql.h and sqlext.h
char * strDSN="ICC";
char * strUser="square";
char * strPass="xyz";
char * strSQL = "Select * from INTRA_PMNS";
char * szPMN;
float fVersionNo;
char * szDestinationPath;
szPMN = new char[6];
szDestinationPath = new char[255];
SQLHENV hEnv;
SQLHDBC hDBC;
SQLHSTMT hSTMT;
int iResult;
iResult=SQLAllocHandle(SQL_HANDLE_ENV, NULL, &hEnv);
if(iResult == SQL_SUCCESS || iResult == SQL_SUCCESS_WITH_INFO)
{
iResult = SQLSetEnvAttr(hEnv,SQL_ATTR_ODBC_VERSION,(SQLPOINTER)SQL_OV_ODBC3,SQL_IS_INTEGER);
if(iResult == SQL_SUCCESS || iResult == SQL_SUCCESS_WITH_INFO)
{
iResult=SQLAllocHandle(SQL_HANDLE_DBC, hEnv, &hDBC);
if(iResult == SQL_SUCCESS || iResult == SQL_SUCCESS_WITH_INFO)
{
iResult = SQLConnect(hDBC,(SQLCHAR*)strDSN,SQL_NTS,(SQLCHAR*)strUser,SQL_NTS,(SQLCHAR*)strPass,SQL_NTS);
if(iResult == SQL_SUCCESS || iResult == SQL_SUCCESS_WITH_INFO)
{
iResult=SQLAllocHandle(SQL_HANDLE_STMT, hDBC, &hSTMT);
if(iResult == SQL_SUCCESS || iResult == SQL_SUCCESS_WITH_INFO)
{
iResult = SQLExecDirect(hSTMT,(SQLCHAR *)strSQL,SQL_NTS);
if(iResult == SQL_SUCCESS || iResult == SQL_SUCCESS_WITH_INFO)
{
iResult = SQLFetch(hSTMT);
if(iResult == SQL_SUCCESS || iResult == SQL_SUCCESS_WITH_INFO)
{
SQLINTEGER ret=-1;
{
SQLGetData(hSTMT, 1, SQL_C_CHAR, szPMN, 6, &ret);
SQLGetData(hSTMT, 2, SQL_C_FLOAT, &fVersionNo, 5, &ret);
SQLGetData(hSTMT, 3, SQL_C_CHAR, szDestinationPath, 255, &ret);
}
}
}
}
}
}
}
}
Regards
|
|
|
|
|
I created a modal dialog box which is a third level child.
I override the CDialog DoModal function and made the first level child as the owner of this modal dialog, so that this dialog will be modal only up to first level. Hence the main dialog can be activated. Before main dialog is getting destroyed, I'm destroying all the child dialogs.
While modal dialog is displaying, if I destroy the main dialog, I'm getting assertion. The problem is modal loop is still valid.
I called the function EndModalLoop() before destroying the dialog window, still the problem exist.
How to stop/exit modal loop ?
|
|
|
|
|
|
EndDilaog() also closes the dialog window but not stop the modal loop.
The combination of EndModalState() and EndModalLoop(ID_CANCEL)will solve this issue.
Is this right way of handling this problem ?
Is any other way we can solve this issue ?
|
|
|
|
|
I am writing a smartcard reader driver. Whenever I call any function of smclib, the driver does not loads, not even DriverEntry function is called! I am calling SmartcardInitialize , and all parameters are
correctly initialized. System returns error mesage 2 "The System cannot find the file specified!". I have tried the same driver on Windows XP and Windows 2000, but problem remains same. Can any one tell me what does this error message means, and how to fix it?
ARSALAN MALIK
|
|
|
|
|
Hi all..I would like to store the information regarding the toolbars in an xml file..Can any one help me to proceed further.
|
|
|
|
|
|
Hi,
Thanks for the reply.
I have the toolbar data in my application which is generally stored in the Registry.I want to store the Docking and floating information of the tool bars to be stored in the xml file rather than the registry and when i try to start my application it should be able to load that info from the xml file.Usually CDockState is a an MFC class which is used to store the info reg the docking and floating of the toolbar to the registry.
Swarna
|
|
|
|
|
Hello guys!
Need your help again on these:
1. How to disable the input focus of a listbox control in a dialog box.
2. What message is sent to the main dialog box when its listbox control is about to receive an input focus?
Thanks!
|
|
|
|
|
Check out the WM_SETFOCUS message.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I am trying to receive the TV remote signal using the ipaq 3115.
The IR port on the pocket pc is Port 3. Its opened and configured. No errors there.
I constantly poll the port for any data. But I am getting none.
Here's my code -
BYTE rx;
int rcd[30];
int i=0;
DWORD dwbytesTransferred=0;
long one;
while(1)
{
one = ReadFile(m_irport, &rx, 1, &dwbytesTransferred, NULL);
if (dwbytesTransferred > 0)
{
rcd[i]=rx;
m_rcv="Data In";
UpdateData(FALSE);
i++;
}
else
{
m_rcv="No Data";
UpdateData(FALSE);
}
}
Any help would be greatly appreciated. Thanks.
-hithesh
|
|
|
|
|
Hi,
Could anyone help me to parse HL7 Messages
Be simple and Be sample.
|
|
|
|
|
hi all
i wrote the following function to append one project's accelerators to another because i thought there was no function doing that. but it has a problem, +10 (something more than 2) is required. why?
status appendAcceleratorsTable(HACCEL &hAccel,LPCTSTR lpszResourceName)<br />
{<br />
HINSTANCE hInst=AfxFindResourceHandle(lpszResourceName,RT_ACCELERATOR);<br />
ASSERT(hInst);<br />
HACCEL hNewAccel=LoadAccelerators(hInst,lpszResourceName);<br />
ASSERT(hNewAccel);<br />
<br />
int numAccel=CopyAcceleratorTable(hAccel,NULL,NP);<br />
int numNewAccel=CopyAcceleratorTable(hNewAccel,NULL,NP);<br />
<br />
LPACCEL lpAccel=(LPACCEL)GlobalAlloc(GPTR,(numAccel+numNewAccel+10)*sizeof(ACCEL));<br />
ASSERT(!lpAccel);<br />
<br />
VERIFY(CopyAcceleratorTable(hAccel,lpAccel,numAccel)==numAccel);<br />
VERIFY(CopyAcceleratorTable(hNewAccel,lpAccel+numAccel,numNewAccel)==numNewAccel);<br />
<br />
DestroyAcceleratorTable(hNewAccel);<br />
hNewAccel=CreateAcceleratorTable(lpAccel,numAccel+numNewAccel);<br />
ASSERT(hNewAccel);<br />
VERIFY(CopyAcceleratorTable(hNewAccel,NULL,NP)==numAccel+numNewAccel);<br />
DestroyAcceleratorTable(hAccel);<br />
hAccel=hNewAccel;<br />
}<br />
|
|
|
|
|
I'm interested in doing some work with Assembly. Does anyone know any good resources on the web for learning Win32 assembly from start to finish (coding to compiling)?
Additionally, I have a dll module that I want to decompile, modify, and recompile. Does anyone know how to do this, or know of resource through which to do it? (This is a module that I will NOT be redistributing, it's for my own tinkering pleasure)
Thanks for the help. Sorry if this is OT.
-- Adam
"If you can't beat your computer in chess, try kickboxing"
|
|
|
|
|
|
Arsalan Malik wrote:
Download PDF[^]
Interesting link; thanks for posting it.
-------------------------------
|
|
|
|
|
I am new to vc++. i have a function which on execution is throwing garbage value. Can someone tell me when a vc++ function throws a garbage value. Thanx in adv
|
|
|
|
|
Hi!
Can you elaborate on your function details?
It's much better if you could post your function definition (function body).
|
|
|
|
|
nitin_ten wrote:
i have a function which on execution is throwing garbage value.
This makes no sense at all. Technically speaking, exceptions are thrown. Please provide a code snippet of what you are trying to do, the value(s) that you are getting, and the value(s) you want instead. Provide as much pertinent details as necessary.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I see in class CxxxDoc variable m_viewList, but where does this variable declare ?
Thank you
|
|
|
|
|
this variable is afxwin.h file in CDocument class on line number 4855. This is a list of pointers to the views that the document have.
http://www.priyank.in/
|
|
|
|
|
When I run my project that is MSDN example chatsrvr, I give this error :
--------------------Configuration: ChatSrvr - Win32 Unicode Debug--------------------
Linking...
LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
Error executing link.exe.
chatsrvr.exe - 1 error(s), 0 warning(s)
Please tell me what error is cannot open file "mfc42ud.lib"
Thanks in advance
|
|
|
|