Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Layer for Unicode on W9x/Me on VFP

Status
Not open for further replies.

terosoft

Programmer
Jun 4, 2003
73
AR
I want to use API functions like WNetAddConnection2 and NetRemoteTOD on my app running in Win98, but all examples of using Unicode Layer I've found are for C.

Anyone knows how to use unicows.dll on VFP?

Thanks in advance,



Gerardo Czajkowski
ltc.jpg
 
terosoft

I'm not sure how Unicode relates to adding a network connection and finding out the time of day of a server. You can a network connection with WNetAddConnection2 or you can use windows scripting (see faq184-4140).

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
mgannon, you're right about NetRemoteTOD and unicode layer, I think I saw on MSDN that it was also supported on win9x through Unicode Layer.
Now that I think about it I can get server time through MSDE issuing "SELECT GETDATE()" and then issue SetSystemTime with the result. Note that I don't want to use NET TIME if possible because the generated DOS box is not always closed up although I specify it and the user must close it. It's simply a cosmetic issue.

On the matter of net connections, I prefer to rely on Windows API directly than using windows scripting if I can do it. Currently I use WNetAddConnection but it's a very limited function.

StewartUK, Unicode Layer for w9x/Me is mentioned at News2News site but they don't explain how to use it, I think the answer to my question it's too obvious form me to see or too tricky. [pipe]

Regards,

Gerardo Czajkowski
ltc.jpg
 
TEROSOFT

Now that I think about it I can get server time through MSDE issuing "SELECT GETDATE()" and then issue SetSystemTime with the result.

Either that or create a textfile on the server, and retrieve the datetime it was created and update you system with that and delete the file.

WNetAddConnection but it's a very limited function

What would the fourth parameter give you more?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mike Gagnon, (too much Mikes here! :) )

The differences between WNetAddConnection and WNetAddConnection2 are far more than a fourth parameter (there ar more than four if you note that 1st is a struct). Version 2 allows, among others, to include username also and (this is what I'm really interested in) it can ask the user for username & password if the ones passed are wrong, something that 1st. version can't.

Mike Pratt, I'll take a look at that viewer. Thanks for the tip.

Regards,

Gerardo Czajkowski
ltc.jpg
 
Mike Gagnon, (too much Mikes here! :) )

Tell me it ain't so!! ;-) We should have a Mike's forum.

Tip wasn't really mine. Credit to jrbbldr posted on thread 85654?

How do I reference another thread a Tek-Tips?

Regards,

Mike
 
How do I reference another thread a Tek-Tips?

Simple, see the thread ID just down the thread's title? Write that into your post.

Example: This thread ID is 184-869908, so a link to it should be thread184-869908

Regards,

Gerardo Czajkowski
ltc.jpg
 
Gerardo,

Thanks for the info. Original thread for the API viewer is thread184-856543 (testing).

Regards,

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top