Declaring an CInternetSession variable globally
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello Guys, How ru all doing..i need some some help in VC++, When iam declaring an CInternetSession variable as global, i get some debug assertion error, when the application runs, i have created the applicaiton through MFC Wizard, in the dialog i do some operations for FTp Connection, so i establish a CInternetSession and CFTPConnection Variable globally, because it is accesed by many functions, when the app runs, the error is thrown off, when i declare the CInternetSession inside a function, i dont get any error, but i want it only globally.