|
My mistake Blake, I should have finished the story.
The .dll API file is in the root directory of D:.
The LoadLibrary("D:\\wrk32.dll")result is picked up by GetLastError() which is 126, file not found.
|
|
|
|
|
Just before loading your DLL, add this line of code to your program:
SetErrorMode(0);
That way, when you run your progrma, a dialog box will pop up and you can see which DLL is missing. It will tell you all the places it tried to load the missing DLL.
Make sure to take the call back out before releasing your program.
|
|
|
|
|
Thanks very much. That tip was most helpfull.
Daniel Kelly
|
|
|
|
|
Where can i find an online VC++ 6 macros reference (the VB macros)?
|
|
|
|
|
IIRC there's a reference in the VC++ 6 installed Help.
Kevin
|
|
|
|
|
Im getting tired of people telling me whats on the VS6 cd's if had them why would i ask the question?
(im sorry to sound hatefull but its getting annoying)
thats why i specified "online" meaning "located on the internet"
|
|
|
|
|
I assumed that if you were running VC++ you would have had the Help installed? But that's not always so.
However, you can also always find an up-to-date Help set, which is a superset of the Visual Studio installed online help, at http://msdn.microsoft.com/library[^].
The macros reference will be in there somewhere. Though I always find the online version of the MSDN Library harder to search than the installed version.
Kevin
|
|
|
|
|
I just started COM programming and managed to write some small sample programs to use the IActiveDesktop and IShellLink interfaces and their methods; basically i am playing around with things like these for the time being:
<br />
CoInitialize(NULL);<br />
<br />
WCHAR wszWallpaper [MAX_PATH];<br />
HRESULT hr;<br />
IActiveDesktop* pIAD;<br />
<br />
<br />
hr = CoCreateInstance ( CLSID_ActiveDesktop, NULL, CLSCTX_INPROC_SERVER, IID_IActiveDesktop, (void**) &pIAD );<br />
<br />
if ( SUCCEEDED(hr) )<br />
{<br />
hr = pIAD->GetWallpaper ( wszWallpaper, MAX_PATH, 0 );<br />
<br />
if ( SUCCEEDED(hr) )<br />
{<br />
wcout << L"Wallpaper path is:\n " << wszWallpaper << endl << endl;<br />
}<br />
<br />
}<br />
<br />
The above compiles correctly and works successfully.
However, when i try to use the ITaskbarList in the same manner, the compiler throws it all up, telling me that ITaskbarList is an undeclared identifier...
Any ideas where i'm getting it all wrong?
Many thanks...
Chris
|
|
|
|
|
Hi,
I wanted to create dynamically controls (CButton) on my dialog. They are displayed but don't react. Second problem is that I want to react in the dialog to a click on a button.
The creation of buttons (this -> the dialog containing the buttons)
for (int i = 0; i < 16; i++)
{
pButton = new CButton;
iLeft = (iWidth+iSpace)*i;
pButton->Create(_T(""), WS_CHILD|WS_VISIBLE|BS_RADIOBUTTON,
CRect(iLeft,10,iLeft + iWidth,30), this, WM_USER+i);
}
But now I don't know how to get the message queue of the buttons!
thx & greets
|
|
|
|
|
You can either specify an ON_COMMAND_RANGE handler for all of them at once, or add buttons in the resource editor with the desired id, create handlers and them remove the buttons (but not the handlers, of course)
|
|
|
|
|
ok thank you!
But what I wanted to know is how to create buttons at runtime.
so the problem is that I cannot set ON_COMMAND_RANGE handler cause I don't know how many buttons there will be. But every button should react the same way!
greets
|
|
|
|
|
You can use ON_COMMAND_RANGE anyway, just allow for the max number of buttons.
|
|
|
|
|
HOw can i send and get data from COM port.
is there any Events fired when data is recved COM port as like in Sockets where OnRecieve event is fired ..etc.
i found WriteFile and ReadFile for COMports...
is there any other way.
Who can i know that now i can read data from Com Port any signal will it give ..
thanx
|
|
|
|
|
HI Folks,
Has anyone of you worked on Volume shadow Copy Services. If Yes, Have you worked on VSS Components.
Pradeep M M
|
|
|
|
|
Excuse me this is no reply but what is Volume Shadow Copy Services?
Well... I am a beginner ...
|
|
|
|
|
Hi,
I am Aravind from Chennai.
I saw your comment at code project.com on Volume shadow copy.
I need some information regarding that. Hope you have ideas regarding that. If possible, can you please share them with me? My need is as follows...
I want to take backup of files using volume shadow copy service [VSS] in Windows 2003 server.
I have to use VSS for getting the file difference with their previous versions. So, I have to get the snapshot details from VSS.
So, how to get those details and where those snapshots where stored?
Thanks in advance.
Cheers by,
aravind.t
Life is Short. Art is long long double.
|
|
|
|
|
Hi!
Is it possible to use the CColorDialog in a win32 api c++ application without mfc?
Thank you very much for your answers in advance!
Well... I am a beginner ...
|
|
|
|
|
You might want to check the API-call ChooseColor .
|
|
|
|
|
Hi,
I am a new in VC++
I made dialog box in MFC
I create a dialog box, which contains three-command button.
OK, Cancel and Apply. Then I place Tab Control on this dialog box. Tab control contains three pages like page1, page2 and page3. Page1 contains three-radio button namely Radio1, Radio2 and Radio3.Now I would like to do operations on Radio Button.
If I select Radio1, Apply button should be enabled the clicking on the Apply Button, It should be disabled. Similarly on Radio button2 and Radio button3. I know how to Enable/Disable Apply button-
CButton but;
but.Attach(GetDlgItem(IDC_APPLY)->GetSafeHwnd());
but.EnableWindow(FALSE);
but.Detach();
Please help me.
rajesh
|
|
|
|
|
Repost... : My post...[^]
BOOL Cwnd::EnableWindow(BOOL bEnable = TRUE); <font style="color:green;">
TOXCCT >>> GEII power
|
|
|
|
|
I have a tree control that reads data from database and draw it on creation, I need it to refresh once the database has changed.
The point is, I want to keep the tree control synchonized by event driven method. What message is appropiate to send to the tree control ?
Horace
|
|
|
|
|
hello friends
how can i deny the list control column resizing when we double click the header control???
mind is everything.
|
|
|
|
|
|
Cohen , THANKS FOR YOUR RESPONSE
IN THAT ARTICLE THEY SAYS
The header control in the ListView control sends notification to the parent window (e.i. the ListView) before it begins resizing a column. We can override the OnNotify() function in the CListCtrl derived class to handle this notification. The code below prevents resizing of all columns. Note that the resize cursor still shows up.
BOOL CMyListCtrl::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
switch (((NMHDR*)lParam)->code)
{
case HDN_BEGINTRACKW:
case HDN_BEGINTRACKA:
*pResult = TRUE; // disable tracking
return TRUE; // Processed message
}
return CListCtrl::OnNotify(wParam, lParam, pResult);
}
BUT DIDNT WORK WITH MY LIST CONTROL....
ANY IDEA ??????????
mind is everything.
|
|
|
|
|
Hi..How to display tooltip on toolbar button..
Thanks
---Sumit Kapoor---
|
|
|
|