Click here to Skip to main content
15,922,309 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionHow to convet GetIDispatch(FALSE) to atl Pin
saravananvv24-May-05 1:05
saravananvv24-May-05 1:05 
GeneralOutgoing IDispatch interface Pin
preethamr23-May-05 22:12
preethamr23-May-05 22:12 
QuestionHow to Connect to database in ntservice Pin
Yu_Matrix22-May-05 22:22
Yu_Matrix22-May-05 22:22 
AnswerRe: How to Connect to database in ntservice Pin
toxcct23-May-05 3:43
toxcct23-May-05 3:43 
AnswerRe: How to Connect to database in ntservice Pin
Sergey Solozhentsev30-May-05 5:30
Sergey Solozhentsev30-May-05 5:30 
Generalabout outlook addin Pin
Member 198215421-May-05 0:53
Member 198215421-May-05 0:53 
GeneralHELP!!! using DISTINCT keyword causes error 0x80040E21 Pin
oyinbogo19-May-05 11:43
oyinbogo19-May-05 11:43 
GeneralError registering window class Pin
Fantmx19-May-05 10:15
Fantmx19-May-05 10:15 
I am new to WTL/ATL, and I am trying to make a popup style window like MSN Messenger has. I have a class that has CWindowImpl as it's base. When I try to create the window, the error I get is: The system cannot find the file specified.
In my .h file, I have:

DECLARE_WND_CLASS("CInfoPopup")
and then to create the object, I have
	this->mParent = theParent;<br />
	HWND hwndMain;<br />
<br />
	HINSTANCE hInstance = _AtlBaseModule.GetResourceInstance();<br />
	WNDCLASSEX wcx;<br />
<br />
	ZeroMemory(&wcx,sizeof(WNDCLASSEX));<br />
	wcx.cbSize = sizeof(WNDCLASSEX);<br />
	wcx.style = CS_HREDRAW|CS_VREDRAW | CS_DBLCLKS;<br />
	wcx.lpfnWndProc = ::DefWindowProc;<br />
	wcx.cbClsExtra = 0;<br />
	wcx.cbWndExtra = 0;<br />
	wcx.hInstance = hInstance;<br />
	wcx.hIcon = NULL;<br />
	wcx.hCursor = LoadCursor(NULL, IDC_ARROW);<br />
	wcx.hbrBackground = (HBRUSH)(COLOR_WINDOW);<br />
	wcx.lpszMenuName = NULL;<br />
	wcx.lpszClassName = "CInfoPopup";<br />
	wcx.hIconSm = NULL;<br />
<br />
	if (!RegisterClassEx(&wcx))<br />
		return 0;<br />
<br />
	// Create the window<br />
	hwndMain = CreateWindowEx(WS_EX_NOPARENTNOTIFY | WS_EX_TOPMOST, "CInfoPopup", "", WS_POPUP, 0, 0, 0, 0, this->mParent->m_hWnd, NULL, hInstance, NULL);<br />


I have also tried registering the class, and then

CWindowImpl<CInfoPopup>::Create(this->mParent->m_hWnd, rect, "", CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS, WS_EX_NOPARENTNOTIFY | WS_EX_TOPMOST, 0U, NULL);
When I do that, I get: The specified module could not be found.

Any help would be appreciated!
GeneralRe: Error registering window class Pin
Michael Dunn19-May-05 20:17
sitebuilderMichael Dunn19-May-05 20:17 
GeneralRe: Error registering window class Pin
Fantmx20-May-05 3:05
Fantmx20-May-05 3:05 
GeneralRe: Error registering window class Pin
Michael Dunn20-May-05 9:20
sitebuilderMichael Dunn20-May-05 9:20 
GeneralRe: Error registering window class Pin
Fantmx20-May-05 10:19
Fantmx20-May-05 10:19 
GeneralRe: Error registering window class Pin
Michael Dunn20-May-05 12:14
sitebuilderMichael Dunn20-May-05 12:14 
GeneralRe: Error registering window class Pin
Fantmx3-Jun-05 8:48
Fantmx3-Jun-05 8:48 
Generalputting custom icons Pin
Anonymous19-May-05 3:48
Anonymous19-May-05 3:48 
QuestionSOS!Why I could not call the function from a dll? Pin
kiluar18-May-05 22:41
kiluar18-May-05 22:41 
AnswerRe: SOS!Why I could not call the function from a dll? Pin
Sergey Solozhentsev30-May-05 5:25
Sergey Solozhentsev30-May-05 5:25 
GeneralATL VC 7.xxx Pin
oscarferreira118-May-05 11:51
oscarferreira118-May-05 11:51 
Questionhelp: why a ATL control created in VC can not work well in vb? Pin
ictory18-May-05 3:29
ictory18-May-05 3:29 
AnswerRe: help: why a ATL control created in VC can not work well in vb? Pin
Jörgen Sigvardsson18-May-05 12:14
Jörgen Sigvardsson18-May-05 12:14 
Generalsimple c++ question Pin
Timothy_198217-May-05 0:53
Timothy_198217-May-05 0:53 
GeneralRe: simple c++ question Pin
James R. Twine17-May-05 1:23
James R. Twine17-May-05 1:23 
GeneralRe: simple c++ question Pin
Timothy_198217-May-05 1:27
Timothy_198217-May-05 1:27 
GeneralRe: simple c++ question Pin
James R. Twine17-May-05 3:31
James R. Twine17-May-05 3:31 
GeneralRe: simple c++ question Pin
[tlg]1-Jun-05 14:29
[tlg]1-Jun-05 14:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.