|
As I remember it is the same way. And same way you are exporting them. I did such thing about 2 years ago, using DEF file ,not __declspec . So not sure if you can export/import classes in exe. But LoadLibrary and all that stuff is working fine
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Philip Patrick wrote:
So not sure if you can export/import classes in exe
But I can export functions as you said!
Thanks!
ps. this is my 400th message!
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
Rickard Andersson wrote:
this is my 400th message!
Congratulations!
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
congrats
|
|
|
|
|
How can I make my app check if there is any current transfer??
I mean, if the internet connection is on and nobody is sitting and surfing I want the modem to disconnect. But how will I know if there is any transfer?
I hope you understand me!! Please ask me if you don't!
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
Isn't there already a "Disconnect timeout" in some of the RAS dialogs? If you can't find it, surely your modem has this ability. Read up on it's AT command set.
|
|
|
|
|
Mike Nordell wrote:
Disconnect timeout
ooh.. I will check that out!
Thank you!
Mike Nordell wrote:
surely your modem has this abil
But how do I put my modem in to the Visual Studio IDE!?!?!!?
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
But how do I put my modem in to the Visual Studio IDE!?!?!!?
That is of course completely impossible, but it does display you want to set the timeout programmatically.
The easiest way I can come to think of is to open the com port the modem is connected to and send it the "set timeout" AT command (it might be ATS3, but don't take my word for it since it's over ten years since I last played with it - insetad do that read-up on your modems AT command set).
|
|
|
|
|
I think u can't.
One solution (of many) I use on Linux, don't know if it works on Windows: Don't requery or perform internet access to often in your application, let a timeout a chance to happen and terminate then internet access. Then you can check in your application if there is still internet access, and only if there is make access to the internet. LAN access is always fine though.
Some PCs can't check on there own if they are online: The inet access is via a router (instead of a local ISP connection), so it gets hard. For that case I gave my application a command line option to trigger online/offline... but well, the user has to trigger that on his own. Well, users are stupid, let teh sysadmins do the work...
Some emailchecker or messanger might cause high internet costs still, because ´the computer is online endless....
|
|
|
|
|
Is there a way to block all internet acces on a computer??
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
do you mean write a program that when its running it blocks all access? wouldn't it be easier to just put permissions on the proxy to keep certain users from accessing the net?
-dz
|
|
|
|
|
Hmm.. I want no program to acces the internet at all or user... so. what do you mean with the proxy thing!?
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
well it all depends on how the user has access to the net. If you are at an office with a network connection then their internet access is routed through a proxy (a computer which connects to the T1 and disperses the connection to all the other computers).
I think we may be confused here, what does this have to do with coding, and what are the specifics of the network?
the easiest way to keep someone from getting on the net is to unplug their network connection
-dz
|
|
|
|
|
Well it sounds like an useless app that I'm doing!
I don't want my "self connecting apps" that want to check for updates to check for their updates.. and then I want to block the internet access so they don't...
And some more reasons for why I'm ask for this...
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
ZoneAlarm may be what you're looking for. www.zonelabs.com.
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Yes!
But I want to do it myself.. in my app...
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
Rickard Andersson wrote:
Is there a way to block all internet acces on a computer??
You can add a rule at the firewall to deny all packets to/from that machine's IP address
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Yes but I want to do it in my app!
Hooow!
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
I guess that would require you to listen to every single request going through port 80 (assuming they check for updates through the http port), determine if the request is for an IP you don't want, and if so somehow blocking it.. i don't have a clue about how to do this at all so ill shut up now
the easiest thing would be just to install some IP sniffing software and look to see what IP address the software is trying to access.. then install a firewall and block access to that IP.. like nish said.
good luck in whatever your trying to do
-dz
|
|
|
|
|
Okay!
Then it was a little bit harder to do than I thought!
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
My CTreeCtrl uses checkboxes. When a user checks / unchecks a box I would like to do some error checking on what was just checked and uncheck it if I don't want the user to have it checked.
TVN_SELCHANGED is only called when the highlighting is changed, and NM_CLICKED is called before the checkbox is updated (so if something was just checked it is still considered unchecked when this message is thrown).
Is there a way to call a function whenever the checkboxes are updated? Is there a way to keep an item from being checked (either at the time of adding it to the tree, or when it is checked) ?
any insight would be great! I have heard ppl mention using timers which can run such procedures every 100ms or something, this could be a possibility for me, is this hard to do, examples?
thanks!
-dz
|
|
|
|
|
There are other ways i think, but i got around this by simply subclassing the tree and overriding WM_LBUTTONDOWN . You can use CTreeCtrl::HitTest() to determine what bit of what item was clicked on; just watch for TVHT_ONITEMSTATEICON and you're good to go. Just use !GetCheck(hItem); to determine if it will be checked.
---Shog9---
From now on we can call C# and MC++ "The square wheel languages" -- Jack Handy, The Lounge
|
|
|
|
|
thanks for the suggestion so your saying i need to create my own class which is derived from CTreeCtrl right? ill give it a try!
thanks again!
-dz
|
|
|
|
|
Good luck. If you hit any snags, just ask.
---Shog9---
From now on we can call C# and MC++ "The square wheel languages" -- Jack Handy, The Lounge
|
|
|
|
|
I want to write a function that return CList and items in CList is CString .I declare it in these two way but I get some errors.
CList FindFile(LPCTSTR directorypath);
CList<cstring ,="" cstring&=""> FindFile(LPCTSTR directorypath);
What is the correct way for it?
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|