|
Hi!
is it possible, to make a castType from _bstr_t to "int"?
Thanks, hanno
|
|
|
|
|
Can't you just use atoi() ?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Don't know what you like to achieve, but if you are up to put a integer value into a string a type cast is the wrong way. Use atoi() to convert character arrays to integers.
Hope this helped you out.
Walter
|
|
|
|
|
Yes, that did it! Thanks.
|
|
|
|
|
I just know sub window need ID to call some function.
does the main window need a ID? and where does the ID come to play?
|
|
|
|
|
What exactly are you asking here?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Is IDR_MAINFRAME represented main window? does operation on main window need the parameter IDR_MAINFRAME?
|
|
|
|
|
derek7 wrote:
Is IDR_MAINFRAME represented main window?
Main window of what?
derek7 wrote: does operation on main window need the parameter IDR_MAINFRAME?
What operation?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi all,
My problem is like this
Connect and create session to the webserver using https
Get local binary data (any file) and upload this binry data on webserver using the above connection.
After searching through MSDN i found 'MFC sample TEAR' and its working fine to connect and get data from server.
but it works only when direct internet connection is available (no proxy),
And it fails for proxy or firewall authetication.
also i dont know if this sample supports 'https' or not.
i want to establish all these connections through my application
my application should check if proxy is enabled or not
(i think which can be easily done by getting default browsers settings from registry)
and ask user to enter proxy login and password. then i should able to connect internet using these information.
can any one suggest solution for my problem?
Thanks in advance.
sanjay
|
|
|
|
|
I don't know the MFC sample TEAR but as my experience shows these examples seldom use ssl connections. If you want to setup a https (ssl) connection take a look at openssl http://www.openssl.org/.
A simple connection through a proxy (non-authenticating) is quite easy. First setup a simple connection to the proxy (you need a ssl connection if the proxy is https protected, too) and send a http request as explained in the codeproject article HTTP Tunneling (HTTP Proxy Socket Client).
Hope i helped you out.
Walter
|
|
|
|
|
Hi walter,
your first point is solution for my question.
also tunneling will work fine.
but as i said i want the user to go through authentication process of proxy server and not bypass them.
user should be prompted to enter proxy user name and password.
this will be done by prompting dialog box.
then i need to use these info to access internet.
Any way your first point is main part of my application,
hope i will find answer for my second part of question.
Thanks a lot.
sanjay
|
|
|
|
|
line counter
should include
counting empty lines
line splitting operator,comment lines....I'm fresher..please answer ..should be simple(using vC++)
|
|
|
|
|
|
what is Super node type communication technology?
JAYARAJ
|
|
|
|
|
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
If service side is behind a router, port mapping to
global IP must be done. Otherwise, we must use
relay server (or proxy server) to copy packets to
the service side.
Some technology may overcome it. Namely, even if
service side is behind a router, with their library
communication can be done without neither port
mapping nor relay server.
Do you have such know-how?
JAYARAJ
|
|
|
|
|
What exactly is the question here?
Ryan "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"
|
|
|
|
|
what do we need to use NAT tech?
JAYARAJ
|
|
|
|
|
for dialog UI design vc provide the dialog editor.
but for general window UI for example painter.exe or media player etc...
|
|
|
|
|
|
Could you please explain this more detail? thx
|
|
|
|
|
|
|
FlyWithYou wrote: RegisterWindowMessage?
You have no other option or send the message to each task individually
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Yes, that will do the job. Just use the same registration string in each process and they will get the same message ID.
Ryan "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"
|
|
|
|