|
No, you can't ...
I'm sure, i think my answer is clear, so i don't explain.
Cheers ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
yes. you can, or at least you could. i wrote many programs using Microsoft's older C compilers using the DOS VESA drivers. i even wrote my own windowing system before Windows 3.0 came out. and, all my old programs still run in the current DOS windows.
i honestly have no idea if the current batch of Visual C++ compilers let you do this or not (i suspect not). but, if you can find an old MS C compiler (pre v7 i think) you're all set.
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
Hello,
I am trying to write an application in WTL with Horizontal Splitters. Could some one send me a link or code to create splitter in WTL.
Thanks in Advance
Regards
Alpesh Makwana
|
|
|
|
|
Can anybody tell me how can i programmatically send and receive mails from any mail account for ex hotmail.com like outlook express does.
|
|
|
|
|
Sending and receiveing mail progrmatically like hotmail is possible by using the SMTP and POP3 Protocol wrappers that are available on CodeProject Site.
http://codeproject.com/internet/csmtpconn.asp by PJ Naughter could help in this.
Thanks in Advance
Regards
Alpesh Makwana
|
|
|
|
|
That's a really complex question though like most complex questions it is much easier to state.
Here are a few hints for direction:
1. Learn WinSock or BSD sockets (you'll need them).
2. Read through RFC 821 (SMTP) most of it might be confusing if your not used to "grammars" but you can get the protocol quite easily. This is how internet mail is propogated (aka sent and passed on).
3. Read through RFC 1939 (POP-3) the same goes as hint #2 except this is how mail is typically recieved through email programs (there are other protocols such as IMAP or Exchange for example but this is far simpler to start with).
If you really want to figure out how this works I suggest you make 4 little experiment tools to begin with in this order (from easiest to hardest).
1. Simple SMTP client.
2. Mail Queue lister and deleter.
3. Mail Reader.
4. Mail Reader with MIME support.
Hopefully this has given you a specific direction to work in. If you need more clarification don't hesitate to ask.
Sean Cody (NullStream)
"As long as you want to live,
everywhere will become heaven.
Afterall, you are still alive."
- End Of Evanglion
|
|
|
|
|
I want to use the status bar in my Dialog based app!
but this code doesn't show the status bar!
m_SB.Create(this); // m_SB is a CStatusBar object
m_SB.SetIndicators(indicator, sizeof(indicators)/sizeof(UINT));
I wrote it in OnInitDialog()
but there is no control when my app is running!
Is there more inits to do before a status bar can be shown....? (hope you understod that!
HELP!!!!!!!!!
/*
BETA
*/
|
|
|
|
|
Rickard
I think that you will need to place this function call after the code you have listed above.
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);
Also have a look at the project I e-mailed you that shows how to add a menu and statusbar to a dialog based app.
Hope this helps.
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
|
|
|
|
|
Hi,
I want to Lock my system by using the Api LockWorkStation. But Whn I am using that it shows an error undeclared identifier. I already included that winuser.h headerfile in to the program .The OS is Win2000...
Plese Help me
|
|
|
|
|
I used this and it works. Most probably the first 3 lines are missing from your code (the 'defines" )...
#define _WINVER 0x0500
#define _WIN32_WINNT 0x0500
#include <Windows.h>
#ifdef _DEBUG
#include <ConIO.h>
#endif
#include <StdIO.h>
VOID Error_DisplayLastW(
IN LPCWSTR pwszMsg
);
int
main(
IN int argc,
IN char **argv
)
{
__try
{
puts("Preparing to lock workstation...\n");
if(!LockWorkStation())
{
Error_DisplayLastW(L"LockWorkStation");
__leave;
}
puts("Workstation unlocked.\n");
}
__finally
{
puts("Finally.\n");
}
puts("Exiting.\n");
return
#ifdef _DEBUG
!_getch()
#else
0
#endif
;
argc;
argv;
}
VOID
Error_DisplayLastW(
IN LPCWSTR pwszMsg
)
{
LPWSTR pwszMessage;
if(FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL,
GetLastError(), 0, (LPWSTR)&pwszMessage, 0, NULL))
{
fprintf(stdout, "%S %S\n", pwszMsg ? pwszMsg : L"", pwszMessage);
LocalFree(pwszMessage);
}
}
|
|
|
|
|
I always forgot the include >...< forms...
The include section is
#include >Windows.h<
#ifdef _DEBUG
#include >ConIO.h<
#endif
#include >StdIO.h<
|
|
|
|
|
#include <Windows.h>
#ifdef _DEBUG
#include <ConIO.h>
#endif
#include <StdIO.h>
|
|
|
|
|
hello,everyone!
I have made a ActiveX Control about report using MFC on VC6.0,and I want to make the print and
print preview methods in the control.Using it I can print report very easy.But I have some trouble while I do it!
Please give me a hand!
Thanks advanced!
|
|
|
|
|
Hi,
We can't help you, when we haven't any information about your ActiveX or your source code ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Thank you for the answer from you!
I am sorry I don't tell about the Print ActiveX.
This ActiveX is made by VC6.0 and MFC,and about a grid ctrl.
So I want to create the methods of Print and Printpreview in the ActiveX and I can call the method in other app to print the report.
but when I create the printpreview method I have a trouble :That I must
have CFrameWnd point,but I don't how to get the CFramewnd point in the
ActiveX.
That is all,Please give me a hand!
Thanks.
|
|
|
|
|
Have no idea how to add new caption button (like close(x), minimize(_) etc.) to title bar, like it is in GetRight (Docking button (.)). Answer if you know...
|
|
|
|
|
Paul DiLascia wrote about this back in '97, here is the link to the article.
http://www.microsoft.com/msj/defaultframe.asp?page=/msj/0697/c++0697.htm
-Ben
---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic"
|
|
|
|
|
I have a problem I just don't get.
I have created two programs, a ProgramApp and a ProgramDLL. The ProgramApp is a SDI and I create a standard modeless dialog when it starts up. Next I load the ProgramDLL so the ProgramApp can use it. I call a function in the Program DLL called ChangeDialogText( lpDlg ), this function sends the lpDlg pointer to the ProgramDLL when calling the ChangeDialogText( lpDlg ).
ok, so far so good,.. now the ProgramDLL has a singal line that does this lpDlg->SetWindowText( "DLL Text" ).... bang here I get an assert that the lpDlg doesn't have a m_hWnd??!?!?!
I have the AFX_MANAGE_STATE(AfxGetStaticModuleState()) in the beginning of the ChangeDialogText function.
I just don't understand it,... it should work. what am I doing wrong.
|
|
|
|
|
I had the same problem through a COM ATL DLL, but the solution is the same, just build a release version of your DLL, it should work (ASSERT only in debug).
Celhtar
|
|
|
|
|
What you can't see won't hurt you
|
|
|
|
|
err, now you are confusing me even more
Peter Marino ( www.marino.dk )
|
|
|
|
|
That isn't a very good solution. I do need my debug version... for debugging and if it asserts then I'm doing something I shouldn't. The assert comes from the ::IsWindow( m_hWnd ) , the m_hWnd comes from my ProgramApp and I can use the lpDlg->SetWindowText( "Whatever" ) without anyproblems,.. but sending the lpDlg over to the DLL and using the same lpDlg->SetWindowText( "Whatever" ) asserts in the ::IsWindow function. The m_hWnd and lpDlg are the same both in the ProgramApp and ProgramDLL.
For some reason the ProgramDLL can't see that the m_hWnd is a valid window in the ProgramDLL?! and this confuses me,.. I have now used 3 days and nights trying to solve this problem.
Peter Marino ( www.marino.dk )
|
|
|
|
|
Try building both the exe and the dll using MFC in a shared DLL. I found this problem too, and using shared dll's it was solved...
Somehow when you use MFC in a shared DLL both the EXE and the DLL will use the same heap or something and pointers can do their work better...
You can find the option in the project settings of the project (left tab).
Please, let me know if it helped you.
Structured programming vs. chaotic mind boggling
|
|
|
|
|
Hi ,
I'm developing the component which calls the stored procs
in oracle. My component is being called in the threads
released by a TCPIP server. I want to know.
1) Is it ok to accept the ADO connection object ( same obj
every time) from the caller, if yes how can i pass it thru
interface?
2) Or should I accept the connection string everytime and
try to connect to oracle.
Can anyone suggest better and safe scenario to get my
work done
Thanking in advance.
Regards
Popsy
.
|
|
|
|
|
I'm going to build a server application, which will be divided into 4 different services. Those services might run on different servers...
I have done a lot of thinking about the communication between those services. They will all run on the same machine, or different machines on a LAN, so the communication protocol don't need to be routable...
I was thinking about going for Named Pipes, be cause I know how to work with those. But Named Pipes doesn't scale well. I mean I meight have 4 threads in service 1, that all might want some data from service 2.
Any thoughts? COM+, DCOM, Sockets, whatever?
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|