Click here to Skip to main content
15,919,774 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC42 and VC7.1 Pin
Rohde20-Feb-04 12:13
Rohde20-Feb-04 12:13 
GeneralRe: MFC42 and VC7.1 Pin
Antti Keskinen21-Feb-04 0:01
Antti Keskinen21-Feb-04 0:01 
GeneralRe: MFC42 and VC7.1 Pin
Rohde21-Feb-04 2:26
Rohde21-Feb-04 2:26 
GeneralTopmost property Pin
jlechem20-Feb-04 11:21
jlechem20-Feb-04 11:21 
GeneralRe: Topmost property Pin
User 665820-Feb-04 12:06
User 665820-Feb-04 12:06 
GeneralRe: Topmost property Pin
Balkrishna Talele20-Feb-04 22:07
Balkrishna Talele20-Feb-04 22:07 
GeneralRe: Topmost property Pin
jlechem21-Feb-04 6:07
jlechem21-Feb-04 6:07 
GeneralWnet functions Pin
Treyminator20-Feb-04 10:32
Treyminator20-Feb-04 10:32 
Forgive me if this is a stupid question. I'm a bit of a novice.

I'd like to determine when a network provider is finished installing/initializing and ready to use. My app runs while the provider is being installed. I'm trying to loop as follows:

while(strcmp(netprovider_buf, "NetWare Services") != 0)
{
WNetGetProviderName(
WNNC_NET_NETWARE,
netprovider_buf,
&buffsize
);
}

My idea is when netprovider_buf equals "NetWare Services", I know I can execute the login and successfully login. The problem I'm experiencing is after the first call to WnetGetProviderName in the loop, if NetWare Services hasn't finish initializing, subsequent calls to WnetGetProviderName do not fill netprovider_buf even after NetWare Services does finish initializing. (Sound confusing yet?)

If I don't run my app until after I know NetWare Services is running, then it works fine.

It seems that the MPR somehow blocks the function from working if it fails to return the provider name after the first call. If I close my app after it fails and then re-run it, it does work.

This is all to help improve SLP resolution using NwDskPe http://www.veder.com/nwdskpe/

Thanks for any help

-Trey
GeneralRe: Wnet functions Pin
David Crow20-Feb-04 10:56
David Crow20-Feb-04 10:56 
GeneralRe: Wnet functions Pin
l a u r e n20-Feb-04 15:51
l a u r e n20-Feb-04 15:51 
GeneralRe: Wnet functions Pin
Treyminator20-Feb-04 16:31
Treyminator20-Feb-04 16:31 
GeneralCustom Entry Point Pin
Alexander M.,20-Feb-04 9:15
Alexander M.,20-Feb-04 9:15 
GeneralRe: Custom Entry Point Pin
Michael Dunn20-Feb-04 12:50
sitebuilderMichael Dunn20-Feb-04 12:50 
GeneralRe: Custom Entry Point Pin
Alexander M.,21-Feb-04 2:57
Alexander M.,21-Feb-04 2:57 
GeneralListView image management Pin
Felix Gartsman20-Feb-04 9:12
Felix Gartsman20-Feb-04 9:12 
QuestionHow to know if the dialog is enable/disable by enablewinodw Pin
vancouver77720-Feb-04 8:48
vancouver77720-Feb-04 8:48 
AnswerRe: How to know if the dialog is enable/disable by enablewinodw Pin
David Crow20-Feb-04 8:59
David Crow20-Feb-04 8:59 
GeneralRe: How to know if the dialog is enable/disable by enablewinodw Pin
Anonymous21-Feb-04 11:51
Anonymous21-Feb-04 11:51 
GeneralRe: airline seat program Pin
Maximilien20-Feb-04 7:39
Maximilien20-Feb-04 7:39 
GeneralRe: airline seat program Pin
antoinette3320-Feb-04 8:40
antoinette3320-Feb-04 8:40 
GeneralRe: airline seat program Pin
David Crow20-Feb-04 8:44
David Crow20-Feb-04 8:44 
GeneralRe: airline seat program Pin
antoinette3320-Feb-04 8:52
antoinette3320-Feb-04 8:52 
GeneralRe: airline seat program Pin
Prakash Nadar20-Feb-04 13:17
Prakash Nadar20-Feb-04 13:17 
GeneralRe: airline seat program Pin
antoinette3320-Feb-04 13:57
antoinette3320-Feb-04 13:57 
GeneralRe: airline seat program Pin
Prakash Nadar20-Feb-04 14:03
Prakash Nadar20-Feb-04 14:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.