|
Actually i dont want to crash the
program but i am studying the reason
by which the programs can crash before
the main function is exectuted
Vikas Amin
Embin Technology
Bombay
|
|
|
|
|
vikas amin wrote: i am studying the reason
by which the programs can crash before
the main function is exectuted
If so, you will do a never ending study. Atleast after you start with windows programming. (If you ever finish studying this with C and C++)
Why do this dude? Destructive mind huh?
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Hi Friends
I have developed an application(MFC based ) in which first I have my object of one class say objMyClass in one file called File1.h and I have used it in File1.cpp.
NOw I want to used the same object(I don't want to create new object) in my another file say File2.h and File2.cpp....how to do that ?
Any clue ?
Thankx a lot
Mahesh
|
|
|
|
|
Use extern
Jesus Loves <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background:#ffaaaa">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Is it possible to use extern for Objects also. I know we can use it for variables but not sure for object.
Also what I want mainly is I don't want to create new objects I just want to use that same object in it's present state.
And last but not the least, Thankx a lot for answering my question and taking time for it.
Regards
Mahesh
|
|
|
|
|
Yeah mahesh extern can be used on objects too.
Jesus Loves <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background:#ffaaaa">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
even u can extern with function.As function r global by default unless u have not put static with function declaration
never say die
|
|
|
|
|
Hi All,
I am faced with a situation where a window from my application needs to handle events the notifications for which are going to another window.
Can someone tell me how I can make my window get the event notification?
More specifically, the issue is regarding the Drag and Drop implementation between my namespace extension and windows explorer. I need my namespace extension to get a notification that a file has been dragged from here and dropped on a particular "Windows Folder".
Thanks in advance,
Regards,
Anil
|
|
|
|
|
|
|
Dear All,
I want to Dispaly some user Names on "Computer Locked" Dialog Box at Win XP.
I will Display the the users statically or dynamically while computer is Unlocked.
Pleae help me how I can achieve it.
With Regards
Manoj
|
|
|
|
|
Are u creating Custom Gina .Or hooking the msgina
never say die
|
|
|
|
|
Dear Sunit5,
My First Target is to custamize the exiting GINA statically. Some one suggested that you can directly modify the existing dialogs by opening it in VC++ Stdio. But I am not able to open the GINA Dialogs in VC++ stdio.
Please let me know How I can achieve it.
2nd Target is to modify GINA dynamically or using another GINA DLL which may be I can achieve by writting GINA DLL as described in "Building and Testing a GINA DLL" in MSDN.
I am using Windows XP.
Thanks and Regards
Manoj
|
|
|
|
|
Have a look at the GINA SDK samples. You can do what you would want
with them
Vipin - MVP
|
|
|
|
|
I am new to COM and am just about able to manage some of the predefined property types. I want a property of type MYSQL (from mysql.h) that will accept a connection identity.
Any ideas?
Ger
|
|
|
|
|
|
Dear All,
I have VC++ windows application. I want to use some javascript functions in the above mentioned application.
If Yes, Please let me know how I can do it? with little bit sample code or some articles.
With Regards
|
|
|
|
|
Technically, yes. That is, in a hosted iexplore AciveX. This code can even interact with your C++ code by calling its functions (and vice versa).
Search MSDN for something like "custom menu explorer" (without quotes).
|
|
|
|
|
Thanks you a lot.
I have a simple calculation method which does not have interaction with Internet Explorer, Events etc. Can I run javascript without Internet Explorer or hosted iexplore ActiveX.
Thanks & Regards
Manoj
|
|
|
|
|
To execute javascript you need a script interpreter. You can get this using the ActiveX script host control. However, this is really intended for embedding scripting into your application and is quite complex to use.
If your method is simple, you'd be better to simply port it to C++. Alternatively, write your application in javascript? What does C++ bring that you need for your application?
Kev
|
|
|
|
|
|
Dear VivekuniQ
If I made a mistake, I am really sorry for that. I am very weak in English, Please let me know my mistake, if its in English, Please also let me know how I can improve it.
Thanks & Regards
Manoj
|
|
|
|
|
I dont know anything like that can be done or not
but u can use an IE object and then try running the
script
Vikas Amin
Embin Technology
Bombay
|
|
|
|
|
|
Hi,
I'm facing a problem in deleting a file using 'remove'.Let me explain the scenario.
The dialog based application has four dialogs in the following manner:In the main screen, if a button is clicked, the second dialog opens; from the second dialog third dialog gets opened, and so on.
The application deals with a file (say 'test.dat' - has objects of a class) in the fourth dialog. The file operations are: add, modify and delete objects.
An object is deleted by creating a temporary file using the 'test.dat' omitting the object to be deleted; the 'test.dat' is deleted using 'remove' function; the temporary file is renamed as 'test.dat' using 'rename' function.
First time the 'remove' function works fine. I am able to add & delete objects so many times. But If I close the fourth dialog and open again from the third dialog, the 'remove' function fails. I am getting the error 'ERROR_SHARING_VIOLATION' in GetLastError. But I have closed 'test.dat' file and the temporary file using 'fclose' function, before try to delete the file. I have opened the file as 'fopen("test.dat", "r")'
Give me your comments.
Thanks in advance.
sarvan al
sarvan_tech@rediffmail.com
|
|
|
|