|
Here is a sample to force this error:
m_nSize = 1000;
m_pbArray = new BYTE[m_nSize];
for(int itr=0; itr
|
|
|
|
|
I need to decide between SQLite or Access Data Base, to build dynamically in my project.
Can you please give me advantages and disadvantages for each one, and advice me wich one to use?
aukh
|
|
|
|
|
i would use sqlite because it's easy, simple and quite handy. api is developer-friendly. if your project is not too complicated and you don't need really huge functionality of database, sqlite is just fo you.
|
|
|
|
|
I would recomend SQLite even for advanced database operations. It is so easy to use, completely free (unlike MYSQL), does almost everything standard SQL does (well everything you need anyway) and it's small.
There is also an excellent C++ wrapper somewhere here on CP that makes using SQLite even easier.
|
|
|
|
|
Where can I get the C++ wrapper?
aukh
|
|
|
|
|
|
here[^]
I would recomend reading the samples first, and making some small command lines test programs to get the feel for it. But really, it is so easy to use. And what is it with this Mihai Moga? He floats around throwing in stupid answers never actually answering the question asked????
|
|
|
|
|
hi guys!
how do i checking the disk in the dvd-rom either dvd or cd?
thanks
|
|
|
|
|
I think you want to check if there is a disk or not in the drive...
Use GetVolumeInformation . To prevent an error message being popped up use SetErrorMode . This could happen if you are using GetVolumeInformation .
Nibu thomas
Software Developer
|
|
|
|
|
i meant how do i know it is a dvd or cd disk ?
thanks
|
|
|
|
|
HI,
I am using a CSMTPConnection class that is published in this web site to send a mail thru my program.
CSMTPConnection smtp;
smtp.Connect("kaveri.****.co.in ");
CSMTPMessage m;
m.AddRecipient(CSMTPAddress("raj1_kk@yahoo.co.in"));
m.m_From = CSMTPAddress("raj_kk@yahoo.co.in");
m.m_sSubject = "Here's my autoexec.bat file!";
CSMTPAttachment a;
a.Attach("c:\\sendmail.txt");
m.AddAttachment(&a);
smtp.SendMessage(m);
I am not able to send the mail or even not getting an error message.
I am not sure whether my SMTP server name(kaveri.****.co.in) is correct
or not.
I can see 2-3 different server names when i look into my msoutlook properties.
How can i find out the name of the correct smtp server that i am using, so that i can send the mail smoothly.
is there any chance that there will be 2-3 servers and 1 will be dynamically allocated for msoutlook.
thanks in advance.
|
|
|
|
|
|
i got the CSMTPconnection from the same article and it dosent speeks about my doubt.
thanks,
|
|
|
|
|
In C#, it is possible to create a new form based on an existing one. C# calls this an "inherited" form and allows you to use the controls and functionality already set from another form.
In C++, aside from manually making the dialog in code using dialog templates, is there any simpler way to do this?
|
|
|
|
|
unfortunately there aren't any easy ways to inherite forms (dialogs).
just copy the previous resource and work on it....
hope this helps
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
>Ask not what your application can do for you,
>Ask what you can do for your application
haha. i guess creating the dialog box from code is the way to go.
|
|
|
|
|
I use ShowWindow(SW_SHOWMAXIMIZED) to make window max, and drag its border frame to change its size, then click button to ShowWindow(SW_SHOWMAXIMIZED) ,but it does not work,what's the problem?
|
|
|
|
|
Hi chybin,
whats your problem?
Do you need to maximized window?
|
|
|
|
|
the window has been maximinized, I drag its border frame to changge its
size,then i want to use ShowWindow(SW_SHOWMAXIMIZED) maximize window,but its not work
|
|
|
|
|
chybin
I dont konw that what is your Application type CDialog single document or...
Can you be more specific.
anyway maybe it is some helpful to you
AfxGetApp()->m_pMainWnd->ShowWindow(SW_MAXIMIZE);
|
|
|
|
|
to maximize a window you should use ShowWindow(SW_MAXIMIZE);
-Saurabh
|
|
|
|
|
Hope this is what you wanted.
void CDlgMaxTestDlg::OnMaximize() <br />
{<br />
ShowWindow(SW_MAXIMIZE) ; <br />
}<br />
<br />
void CDlgMaxTestDlg::OnRestore() <br />
{<br />
ShowWindow(SW_RESTORE) ;<br />
}
|
|
|
|
|
when window is max,I drag its border frame to change its size,then i use ShowWindow(SW_MAXIMIZE) to make it MAXIMIZE,but no effect. I think
sys still deems the window MAXIMIZE.
|
|
|
|
|
|
How I can change the color, font and fontsize of a static box and an Edit box.
|
|
|
|