|
ya valgrind i know its for only unix..i want for windows..any other tool..?
|
|
|
|
|
|
Hi,
i wrote an activeX control and i need to use it in html file which is in webserver.And when any client tries to access the html file he
should be able to download the activeX control...
Please help me how to achieve the same..
|
|
|
|
|
I believe you are asking the wrong forum here, try the Web Development[^] forum or just use Google[^].
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Hi there,
I've been searching the net flat for articles on how to host a Java application within an MFC form / dialog. I have found an article on Code Project on how to host a Java Bean within an MFC dialog, but i am unable to get the same code to work with a full blown Java application.
My question is this:
Is hosting a Java application at all possible within MFC using the JNI? If so, does anyone know any good articles or links that could help assist?
I just need to know that it is possible before i attempt to burn some midnight oil on getting the example of the Java bean to work with a Java application.
Thanks.
|
|
|
|
|
What do you mean by "hosting" exactly ? If you simply need to execute it from your MFC program (as a standalone application), then you can simply use CreateProcess. If you need to render the user interface (if any) of your Java application inside an MFC window, I'm afraid this is not possible.
|
|
|
|
|
Hi All
How can i get Folder create time?I want to know when folder(like folder A) was create?Plz help me
|
|
|
|
|
See WIN32_FIND_DATA structure - FILETIME ftCreationTime i.e. the second parameter
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
GetFileTime[^] (Win32 API)
stat[^] (C run-time library)
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi Guys
I am a c++_ coder got in vc++ and MFC recently
I want to make a programme which takes input on a UI dialog (what a cin
does in console) and (display the output cout in console) and display same in a dialog
Suggest me readings and references or a smaple code
Regards
Amit
|
|
|
|
|
I would suggest you to buy a good book on MFC. You can take the input in an edit box and display it anywhere you wish.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
hi
If u are using MFC...you can do the following
Cin:
1)Put some controls in dialogbox like textbox etc.
2)Bind variables to that controls
3)When somebody types into that text control ,you can get the values into the variables using unctions like UpdateWindow etc
Cout:
1)You can put a static control on dialog and display message(use SetWindowText API)
2)Use a Simple MessageBox
3)Draw Text on the dialog (not needed here)
some links:
http://www.flounder.com/getdlgitem.htm[^]
http://msdn.microsoft.com/en-us/library/86kdbbs8.aspx[^]
Hope that helps
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
Use SetWindowText() and GetWindowText() .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
hi
i would like to know if whether the size of datatype C++ is dependant on which of the following ( or on all of them ) ?
1)Operating System
2)Hardware Architecture
3)Compiler
Eg:Does size of int on 64 bit Hardware with 32/64 bit windows varies?
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
size of int is depend on Compiler.
Compiler is depend on Operating System.
Operating System is depend on Hardware Architecture.
Do not trust a computer...
Always check what computer is doing
regards,
Divyang Mithaiwala
Software Engineer
|
|
|
|
|
According to the C spec, int is a convenient size for that system.
char , short and long are always the same size. Not so sure about float and double ...
As for structures, they can also vary, due to structure padding .
That should give you enough google material / questions to ask your teacher.
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
QuickDeveloper wrote: size of datatype C++ is dependant on which of the following ( or on all of them ) ?
1)Operating System
2)Hardware Architecture
3)Compiler
The data-type size is primarily specified by the compiler. The size used by the compiler will be chosen to make implementation of the data-type easy. So, on a 16-bit processor, ints are likely to be 16-bit, while on a 32-bit compiler, they're likely to be 32-bit.
When you get to 64-bit hardware, you have more choices. 32- or 64-bit ints are natively supported, but you'll probably find they choose 32-bit integers because a) that is in general big enough for most applications, and b) 32-bit ints are half the size of 64-bit ints - moving all ints to 64-bit would probably cause space and speed (because you have to read twice as much memory for ints) issues. You still, of course have access to 64-bit ints through __int64 and long long.
QuickDeveloper wrote: Eg:Does size of int on 64 bit Hardware with 32/64 bit windows varies?
I don't believe so. IIRC, the 64-bit Windows API uses 32-bit integer values and 64-bit pointer values, compared to 32-bit Windows, which uses 32-bit integers and 32-bit pointers.
[bit later]
I've just checked (by compiling with the x86->amd64 cross-compiling version of VC++ and looking at the generated assembler) and VC++ does indeed use 32-bit integers for x86 AND x64.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hello All ,
I want to get information of machine which are connected in lan like there ip address ,mac . in vc++. How should i go
|
|
|
|
|
There's a lot of "depends" here.
Are you in a workgroup? domain? Active directory? You could loop through all ip addresses in your subnet, ping them to see if they exist... But I doubt you could get their mac addresses.
What about firewalls?
There's a reason it can take explorer a long time to fill in the network neighbourhood list.
You've chosen a difficult problem. I'm struggling to think of a requirement for other machines MAC addresses that's not (a) naughty (b) best written on sevre software by someone who knows more about this than I do (which isn't toooo hard)
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Thanks for your reply.
I have my machine in lan .I just wan to know by programatically how many pc are connected now to lan .if it show me ip it is more for me.
and if you kno ip you can find out mac.
|
|
|
|
|
Have you tried NetServerEnum() ?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Yes Sir I also tried it NetServerEnum() but it is not listing ip of windows or linux machine in lan .
|
|
|
|
|
ashish8patil wrote: ...but it is not listing ip...
It's not supposed to. Use gethostbyname() for that.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hello Sir ,
Thank You Sir it is working. But can i find linux machine in network.
|
|
|
|
|
Are you asking how to know if a machine is Linux based on its name or IP address?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|