Archived

This topic is now archived and is closed to further replies.

demonrealms

ActiveX control problems

Recommended Posts

I fina;lly can create a Dialog box that works almost properly yay. But no when I select the create button I made with it's ID tag being: IDC_CREATE2 it doesn't create the file I ask it to. It's odd. There are no errors but this is my code for the creation of the file:
BOOL CALLBACK ToolDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
    switch(Message)
	{
		case WM_COMMAND:
			switch(LOWORD(wParam))
			{
				case IDC_CREATE2:
					{
						ofstream create22( IDC_TEXT );
						create22 << "This is a test" << endl;
						create22.close();
					}
			}
		break;
		default:
			return FALSE;
	}
	return TRUE;

}
Any idea's on why It's not working? Thanks in advance, demonrealms. [edited by - demonrealms on October 9, 2003 4:28:07 PM]

Share this post


Link to post
Share on other sites
Why isn't this post getting any replies? No one ever replies to this post. I need an answer so I can move on.
ARRGGG! PLEASE ANSWER ME!!!!!!!! IT's BEEN TWO DAYS AND NO REPLY!

[edited by - demonrealms on October 9, 2003 9:27:52 PM]

Share this post


Link to post
Share on other sites