|
One solution is strcpy. Another solution is memcpy(). Pass in a pointer to the string that points to the the first character to be copied, which in this is at position 12.
Kuphryn
|
|
|
|
|
|
Hi,
We created a Trial.txt & a Trial.mdb (using FTP to transfer) and put them on our Web-Page (\database\Trial.mdb ). We are able to use VC++ 6.0 to link to our Web Page & read the Trial.txt by the following codes:
<br />
pConnect = pInetSession->GetFtpConnection (strServerName, "xxxxxxxx", "pppppppp", nPort, FALSE);<br />
<br />
pFile = pConnect->OpenFile ("Database/Trial.txt",.......);<br />
<br />
pFile->Read (str, 100 ,...)<br />
*) The problem is: I do not know what command to open & read the Trial.mdb ... does anyone show me how to do it?
It is urgent, I am really appreciate a lot any help here!
Many thanks,
Anh
|
|
|
|
|
ATC wrote:
does anyone show me how to do it?
Sure, you can use ADO to connect to the database and return a recordset. Check the ADO[^] section of articles.
-Nick Parker
|
|
|
|
|
Hi Nick,
I did follow your ADO articles, but there are so many of them and I still have not found out which one link to Web-page, .mdb file using by VC++6.0?
By any chance you can specify which one?
I am really appreciate your help and I meant it!
Many thanks
ATC
|
|
|
|
|
At the end of the day, how do you expect the web page to read the Access database ? Do you know anything about ASP or ASP.NET ? If not, then you're totally in the dark, and you've got a decent learning curve ahead of you. Your web server needs to be running IIS ( i.e. not just a directory of html files on your ISP provided web space ), and you need to write code to read the database, and asp or aspx pages to use that code and turn the result into HTML.
Christian
NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
Anonymous wrote:
OK. I read a c++ book. Or...a bit of it anyway. I'm sick of that evil looking console window.
I think you are a good candidate for Visual Basic. - Nemanja Trifunovic
|
|
|
|
|
Hi Christian,
1) Might be you did not understand my request (or I wrote not clear enough), I do not mention about: the web page to read the Access database! Instead, I mentioned that: how my VC++ 6.0 can read the .mdb file on the Web page (at same Web-page location)
*) The reason was: I know (but not very good) how to use ASP to open the same .mdb file as I mentioned earlier! In fact, I already had an ASP application on the Web using ASP and it is able to open & access data from that .mdb file!
2) However, at the Client site (my personal PC) I have a VC++ 6.0 MFC application using very heavy programming!
*) It has one small option ---> requiring to get the information from the Web user in the same .mdb file who is using my Web-application ASP proram on the Web
- And I do not know: how to link to that .mdb by using only VC++ codes at the Client site
I hope that you understand my issue.
Thanks
ATC
|
|
|
|
|
In other words, your web application is moot, it is irrelevant. You want to connect to a remote database using an MFC app, in other words you need to write code to connect two applications over the web, to send requests and return the data. I'm sure you'll find that info here on the site, or in the MSDN.
Christian
NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
Anonymous wrote:
OK. I read a c++ book. Or...a bit of it anyway. I'm sick of that evil looking console window.
I think you are a good candidate for Visual Basic. - Nemanja Trifunovic
|
|
|
|
|
Hi, can anyone tell me where i might find and example/tutorial on how to establish an SSL connection with a server (not a web server, just in general..). I already know about OpenSSL but to be honest, i don't understand it, lol. So I'm talking something basic, hands on..
Thanks!
Kuniva
--------------------------------------------
|
|
|
|
|
The examples that come with OpenSSL are as basic as it gets (I would even say that they are probably too basic).
Note that SSL communications can be really tricky and you really need to understand what is happening.
Trust me on this one.
"was wir auch tun, wohin wir gehen
die illuminaten sind im system
sie kontrollieren überall
und 23 ist ihre zahl!"
23, welle: erdball
|
|
|
|
|
mmm ok... *is scared now*
Kuniva
--------------------------------------------
|
|
|
|
|
Sorry to scare you off.
I only tried to explain that this isn't an area where you just slap something together and all works just fine.
Though, I should have mentioned that not everything about SSL is hard.
For example, writing a SSL-client using blocking calls and no clientside authentication is pretty easy.
Start off by going through the example that comes with SSL (try to ignore the IMHO bad coding style )
and remember that they are taking some shortcuts that may not be approperiate for your application.
God luck!
"was wir auch tun, wohin wir gehen|die illuminaten sind im system|sie kontrollieren überall|und 23 ist ihre zahl!"
23, welle: erdball
|
|
|
|
|
ah! Faith again! lol
Thanks for the suggestions, i'll be sure to try it. But one more question, Is there perhaps something useful to learn before starting this, like something that would help me a lot understanding this. Or is it unnecessary? I know my way pretty well around sockets now so that shouldn't be a problem, but i was wondering maybe there's another field of importance, like for example encryption? I'm not sure but i just maybe thought that could be of some importance.
Anyways, thanks heaps
Kuniva
--------------------------------------------
|
|
|
|
|
Yes, some knowledge about encryption is a good start. Note that the thing you want to study isn't HOW the different encryption-algorithms work internally but what they require to function.
For example you need to understand what a certificate is, what a certficate-chain is, the role of a CA and the significance of its certficate.
Then learn about how SSL establishes the encrypted connection and how different settings affect how you need to initialize SSL.
Since I dealt with the subject it seems that the selection of books on the topic has expanded some:
http://www.rtfm.com/sslbook/[^]
http://www.wiley.com/legacy/compbooks/catalog/38354-6.htm[^]
And a short tutorial (haven't read it through so it might be crap...)
http://www.darkspell.com/gadgets/ssl/[^]
"was wir auch tun, wohin wir gehen|die illuminaten sind im system|sie kontrollieren überall|und 23 ist ihre zahl!"
23, welle: erdball
|
|
|
|
|
I need a simple example of overloading bitwise AND operator.
Atleast the signature to overload the bitwise AND operator.
Thanks in Advance.
|
|
|
|
|
are you talking about doing this for a class.....
class CDummy
{
public:
CDummy& operator & ( CDummy& rhs )
{
return *this;
}
};
That is untested.... it should work unless there is something funny about overloading bitwise operators compared to normal operators which i doubt.
Joseph Dempsey
joseph_r_dempsey@yahoo.com
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."
--anonymous
|
|
|
|
|
How to Insert/Delete/Modify an entry in a Windows 2000 DNS Server with visual C++. Is there some API's for that purpouse. I've found some VBS's form Microsoft, but i haven't any clue how to convert in to VC++
Tkanks
|
|
|
|
|
Hi,
I tested several MAPI engines which are available on CodeGuru.com and CodeProject.com but no one doesn't work for me
Can you tell me how do you use MAPI in your app ?
Best Regards,
|
|
|
|
|
Hi,
May be you think it's just a joke, But when i removed Outlook XP from my system, all engines works fine !!!
Regards,
Hadi
|
|
|
|
|
I need some help please.
I am working on an application in which a DLL starts up a dialog box. This dialog box is started with a CWinThread I spawn specifically. After DoModal() returns the thread exits. The problem is that my application also uses an Ocx which does some image processing. Anytime the OCX blts something to the screen, the dialog box exits nad so does the thread.
I am not sure what is going on, Can anyone help please ?
|
|
|
|
|
Override OnClose() and determine what triggers the event.
Kuphryn
|
|
|
|
|
hi
i have been trying for bout 2 hrs to change mosu espeed with the floowing code and just doesnt work. Im using windows xp.
long speed[3], new_speed[3];
// Get current mouse speed
SystemParametersInfo(SPI_GETMOUSE, NULL, speed, NULL);
new_speed[0] = speed[0];
new_speed[1] = speed[1];
new_speed[2] = speed[2] * 2;
// Set the mouse speed two times faster
SystemParametersInfo(SPI_SETMOUSE, NULL, new_speed, NULL);
When i debug i can see that new_speed[2] is changing but it has no visual effect on the cursor. It just doesnt make any sense. When i go into control panel the speed is always the same!!
I could rerally use some help here.
Cheers Guys
|
|
|
|
|
Try using SPI_SETMOUSESPEED instead. SPI_SETMOUSE only sets the acceleration thresholds, not the actual speed.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Hello
I want to create a brush for painting the chess-like background for my button with the 1-pixel step. Do I need to use CreatePatternBrush and create appropriate bitmap, or there is another solution.
|
|
|
|
|
Hi all,
i want to change the default file name that will be produced after the compilation. i.e , if i have an *.exe project and the name of the project is MyProj then the name of the output file will be MyProj.exe
i want to change the default name, but i am using code (I can't change it via project-->settings-->link-->general)....
i know there are interfaces of Object Model called IBuildProject, and IApplication and IConfiguration.......
can any1 tell me how to use these interfaces and change the default output file name????
thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|