|
Trivex wrote:
SSL support for Windows
Would this[^] article help?
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Here is the errors when building:
SkinMagicLib.lib(coolsblib.obj) : error LNK2001: unresolved external symbol __imp__InitCommonControlsEx@4
SkinMagicLib.lib(SkinToolBar.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIcon@12
SkinMagicLib.lib(SkinToolBar.obj) : error LNK2001: unresolved external symbol __imp__ImageList_Draw@24
SkinMagicLib.lib(SkinToolBar.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
SkinMagicLib.lib(SkinControl.obj) : error LNK2001: unresolved external symbol __imp___TrackMouseEvent@4
Debug/SkinMagicSDK.dll : fatal error LNK1120: 5 unresolved externals
How to resolve it?
Thanks!
|
|
|
|
|
You typically see this error when you have included the library while you were debugging, but forgot to add it to the release versions and then you try to build the final version.
Select Project, Settings, and then go to the Link tab on the dialog displayed. Make sure the library (whatever it is for this SkinMagicLib component) is included in the list of "Object/Library Modules".
|
|
|
|
|
Just add this line in your stdafx.h file
#pragma comment(lib,"comctl32.lib")
after that there is no problem in linking.
actually problem is that you have provided the declaration of function i.e. by adding commctrl.h in your project for common controls but you forget to provide the runtime symbol for those function, which are defined in comctl32.lib
"I Think this Will Help"
[Vote One Here,.....]
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
Hi, I have a toolbar button of type TBBUTTON. I am trying to set the font for it, is this possible?
|
|
|
|
|
Hello everyone.. I have created a client a server code for communication. I added to the code functions to download the contents of an URL into a file. I have set a the URL as default, and it worked fine. I need to know how to implement a function that will allow the input of any arbitrary URL by a user. Which functions should i use, what params. I looked up readURL, but im not sure if thats what i need.
If u have any idea, please help me.
Thank you.
|
|
|
|
|
|
I have a property sheet with a handful of property pages.
When File/New is selected, I want to clear out the data
from each property page. My code looks like:
void CView0::OnNew()
{
int page = m_pView0PropertySheet->GetActiveIndex();
if (page == 0) m_pView0PropertySheet->m_form0page1.New();
if (page == 1) m_pView0PropertySheet->m_form0page2.New();
if (page == 2) m_pView0PropertySheet->m_form0page3.New();
}
The problem with this code, is that it only clears out the
data from the active property page. Lets say I remove the
if (page == 0)
if (page == 1)
if (page == 2)
If I call this function and the 3rd property page was never
selected (never active), then I get an error because
m_pView0PropertySheet->m_form0page3 is null.
How can I safely clear the data for this example?
Please, any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
You can use IsWindow() on each page to see if it has been activated. IsWindow() will return FALSE if the page has not been activated.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Thank you
Elapid For The Win
|
|
|
|
|
Look in the registry at HKLM\SOFTWARE\Microsoft\.NETFramework\policy\ for things like v1.0, v1.1 etc.
|
|
|
|
|
Could someone please explain to me how to call a different program within my program?
My scheduler keeps calling a program every (let's say) 60 mins. However I do not know how to do that in my program
please help,
thank you
Elapid For The MFC
|
|
|
|
|
Take a look at CreateProcess.
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Could you pls tell me where to look for that CreateProcess?
thanks
Elapid For The Win
|
|
|
|
|
<--Dummy
Elapid For The Win
|
|
|
|
|
|
ShellExecute(NULL,"open","notepad.exe",
NULL,NULL,SW_SHOW );
suhredayan There is no spoon.
|
|
|
|
|
has anyone ever done a c++ application that edits a vrml world
for example remove pictures from a gallery or remove different objects or change there sizes
|
|
|
|
|
I don't know why I get this error but when I quit my app, I get a runtime error in the file wincore.cpp in a function named CWnd::DefWindowProc on this statement:
return ::CallWindowProc(pfnWndProc, m_hWnd, nMsg, wParam, lParam);
I look at the call stack and it's called inside several layers of uxtheme.dll, comctl32.dll, user32.dll, mfc70.dll, user32.dll again, ntdll.dll, mfc70.dll again, and on down. The last mention of my app is here, the line the error is on is in bold:
BOOL CMainFrame::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo) {<br />
if (m_wndView.OnCmdMsg(nID, nCode, pExtra, pHandlerInfo))<br />
return TRUE;<br />
<br />
return CFrameWnd::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);
}
|
|
|
|
|
Some thoughts....
Is your m_wndView.OnCmdMsg() maybe modifying pExtra or pHandlerInfo, even though it's returning FALSE?
Which particular nID and nCode is this handler receiving? Is it the WM_QUIT message or some other termination message? If so, maybe m_wndView is somehow invalidating/destroying itself, then the default handler for OnCmdMsg() is trying to do the same (since I'm guessing that m_wndView is a subwindow of CMainFrame). This could cause this type of crash.
Can you step into CFrameWnd::OnCmdMsg and figure out exactly which sdk call crashes? That may help narrow down the whys of the problem as well.
As I said, just some thoughts about trying to figure out exactly what's going on. I hope they help.
Bob Ciora
|
|
|
|
|
Thanks for your reply.
The stack at the level of my program says:
489gui.exe!CMainFrame::OnCmdMsg(unsigned int nID=0x0000e141, int nCode=0x00000000, void * pExtra=0x00000000, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000) Line 132 + 0xf C++
I kind of new to MFC programming so you'll have to bear with me while I try and understand this all.
I can double-click the top-left box of the dialog and it quits fine, if that helps. I'm not sure what WM_QUIT resolves to as a number. m_wndView is a member of the CMainFrame class.
Somehow it's stopped crashing recently though, but I have a feeling the problem will come back.
|
|
|
|
|
I just moved some stuff around, mainly inserted a new segment in the status bar. Now I get a crash before I see a window. In my InitInstance, I call "pFrame->ShowWindow(SW_SHOW);" and in there it crashes on "return m_pCtrlSite->ShowWindow(nCmdShow);" but m_pCtrlSite is a pointer to the address 0xfeeefeee which is not right. I think I know what's wrong but I have no idea how to fix this one either.
|
|
|
|
|
Creating of toolbars and status bars are generally done in the OnCreate function of the CMainFrm class. The value of your pointer indicates that the frame has not been created yet.
Steve
|
|
|
|
|
I'm curious to know of this is an AppWizard created program, or an MFC program created from scratch.
As Steve said, the toolbars and status bars are generally initialized in the Frame's OnCreate. If this was created by AppWizard, then there should already be some code there to create the initial status bar and toolbar, if you want to look at an example.
Bob Ciora
|
|
|
|
|
Thanks Steve and Bob,
This program was originally written from scratch mainly to immerse myself in Windows programming. After reaching a plateau of understanding and realizing the app code is filled with failed attempts at doing things that don't need to be done, I started a new project, using the AppWizard and simply fill in the routines from my old code.
I had a feeling the problem is because of the toolbar because that's what I changed immediately before this recent error cropped up, but I don't see how to fix it without reverting my changes. Here's the code for my status bar now:
<br />
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) {<br />
... (creates view window and toolbar here) ...<br />
if (!m_wndStatusBar.Create(this) || !m_wndStatusBar.SetIndicators(indicators, sizeof(indicators)/sizeof(UINT))) {<br />
TRACE0("Failed to create status bar\n");<br />
return -1;
} else {<br />
int i;<br />
m_wndStatusBar.SetPaneInfo(0, ID_INDICATOR_INFOLINE, SBPS_STRETCH, 80);<br />
m_wndStatusBar.SetPaneInfo(1, ID_INDICATOR_WORKING, SBPS_NORMAL, 150);<br />
m_wndStatusBar.SetPaneInfo(2, ID_INDICATOR_COMMSETTINGS, SBPS_NORMAL, 125);<br />
m_wndStatusBar.SetPaneInfo(3, ID_INDICATOR_USIZE, SBPS_NORMAL, 125);<br />
m_wndStatusBar.SetPaneInfo(4, ID_INDICATOR_SENTLENGTH, SBPS_NORMAL, 90);<br />
m_wndStatusBar.SetPaneInfo(5, ID_INDICATOR_RECVLENGTH, SBPS_NORMAL, 120);<br />
m_wndStatusBar.SetPaneInfo(6, ID_INDICATOR_CSIZE, SBPS_NORMAL, 140);<br />
<br />
m_wndStatusBar.SetPaneText(0, "No File Loaded", true);<br />
for (i=1; i<6; i++) { m_wndStatusBar.SetPaneText(i, "", true); }<br />
... (sets toolbar style here) ...<br />
return 0;<br />
}<br />
The COMMSETTINGS toolbar segment is the one I added. CMainFrame is derived from CFrameWnd.
|
|
|
|
|