|
I'm writing an application which will change the PCs IP settings (IP, gateway, DNS, etc)
Any pointers on how to do this? Thanks, mutty
|
|
|
|
|
Im using the SIDT command to get the IDT base address.
when i do so sometime i get the known address 8003f400 and sometimes i get another address fff7b260.
How can it be that the sidt returns 2 different addresses?
There is no other process that change it.
Maybe its some new architecture of intel...I dont know...
someone knows about this problem?
Itzik.
|
|
|
|
|
Definitely the wrong forum for this topic. CP does not have a forum dedicated to assembler programming, but you could try the VC++ forum (though to be honest, that's not the right forum too). But someone might just be able to help you out.
Regards,
Nish
|
|
|
|
|
Try to run in debbuging mode. Or you can set from Project Setting->Debugging->Debugging type to Mixed or Native.
in VS2005 set to automatic, it will only crash app and ask to send data to microsoft.
|
|
|
|
|
Can anyone help me in making a source code for a profeller
EXAMPLE
enter a number[1-10]: 5
*****
* ****
** ***
*** **
**** *
***** *****
* ****
** ***
*** **
**** *
*****
pls can someone help me....
|
|
|
|
|
A few for-loops will do this I think (if I got your "profeller" right). Try it out and post here if you run into further trouble.
Regards,
Nish
|
|
|
|
|
Hi,
I need to write a program that controls a camera we use in the lab and get the data. But to do that we need to call some system dll's. We are actually using Matlab for data processing, but I couldn't call some functions because they need pointers, and Matlab apparently doesn't support pointers.
My next option was to get the data from the camera using (visual) c++ and then pass it over to Matlab for processing. But to do that, I need to access some system dlls. Does anyone know how to do that in C++, of if it is possible at all?
PS- if anyone knows anything about making pointers in Matlab, that would be greatly useful too.
thanks
A.S.
|
|
|
|
|
This is the wrong forum for this question. Try the VC++ forum.
Regards,
Nish
|
|
|
|
|
I am building a Form Application using Borland C++ Builder. I want to enable the XP style on all controls in the application. As there is no XP manifest component like the one in Delphi, I put an XP-manifest XML file in the directory of the executable. The problem is only some controls change their appearance. For example the TButton control changes but the TGroupBox does not? Do you know how I can change the style of all controls?
Thank you!
modified 9-Mar-17 17:22pm.
|
|
|
|
|
|
Go and seek out LMD Tools[^]. Even the free edition does what you need -- you just use, for example, the LMD-tool GroupBox instead of the regular group box, etc.
[Yes, I know he asked this in the wrong forum -- is there one for C++Builder? He's probably long gone anyway, but since I know the answer I decided to put it up here in case some other seeker of such knowledge comes along.]
|
|
|
|
|
In a previous message I described a problem with a managed c++ program over the LAN.
In the same z: drive which is mapped back to my local drive, I tried a compiled help file.
It works fine when I run it from the local drive, but when I run it from drive z: I get
Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable.
--------------------------------------------------------------------------------
Does anyone know what is going on here?
Thanks,
Ilan
|
|
|
|
|
Uhm, I don't think the issue with the CHM is the same. This may more be a case of broken links. Try running it from another local drive and you may get the same error.
Regards,
Nish
|
|
|
|
|
I have a managed c++ program which gives the following error when run over the network:
'System.Security.Policy.PolicyException'. It then fails to run.
To check the problem I shared a folder on my local machine giving full access rights to everyone.
Then I mapped the same folder back to myself as drive z:.
If I ran the program through the folder directly: no problem.
If I ran the same program through drive z: fails with above error.
I tried running non managed programs through drive z: and they all seem to work.
Is this a lost cause, or is there anything I can do?
Thanks,
Ilan
|
|
|
|
|
|
Hello!
I like to build an array of CheckBoxes in C++ Builder to call it in a for-loop like this:
for (int i = 0; i<10; i++)
{
CheckBox[i]->Checked = false;
}
How can I do this in best way? How can I create the CheckBoxes on the formular and include it in .h-file?
|
|
|
|
|
|
Could you please give me some idea on the best C++ compiler available for an Windows XP Pro system? I'd like to do some simple tasks that might include graphics. Thank you.
|
|
|
|
|
|
You could try Visual C++ 2005 Express Edition.
Regards,
Nish
|
|
|
|
|
Hello,
Is it possible to implement callback from MC++ to Native C++ using polymorphism?
The intention is to hold the pointer to the derived class in baseclass pointer on Managed C++, later to call the virtual function on the base class pointer. Is this possible without using DLLImport?
Thank you & Best Regards, Renuka
|
|
|
|
|
You don't need P/Invoke, you need a mixed-mode app or DLL. Polymorphism works the same way irrespective of whether you call it from native code or mixed mode code.
Regards,
Nish
|
|
|
|
|
Hello,
Thank you for the clarification. I thought of trying this problem in baby steps as mentioned below:
(1) Have a singleton unmanaged class (say X), shared across managed C++ and native C++.
(Please note a big assumption here. I'm not sure whether this makes sense as the heaps of native and managed worlds are handled differently.
(2) Set Derived class instance in X's singleton instance. X stores this instance in a base class pointer.
(3) Call virtual method on this base class pointer for native client derived class implementation to get executed.
But I'm 100% doubtful about step-1. It is because the heaps of native and managed worlds are different.Is this correct? Is there any alternative way to share the instance of a class between native and managed boundaries using IJW? At least can I use GlobalAlloc() to allocate the bytes to share across managed and native worlds?
How does .NET runtime know when to allocate on managed heap and when to allocate on native heap? Does it decide based on the caller (client)?
Thank you & Best Regards
-- modified at 19:07 Thursday 19th January, 2006
|
|
|
|
|
Native objects are created on the C++ heap (when you use new ) and managed objects are created on the garbage collected CLR heap (when you use gcnew ). There's currently no confusion since you can use new only with native objects and gcnew only with managed objects.
Regards,
Nish
|
|
|
|
|
Hello,
Thank you for the quick response.
I was able to call native overridden virtual function (with no parameters) using polymorphism between Managed and Native C++ via a native DLL (compiled by VC6 compiler). I tried to extend my sample with one managed structure as parameter to the native virtual function. VC6 compiler compiled the sources and generated lib/dll for the new changes successfully.
However, I noticed below compilation error while trying to compile MC++ client using the native header:
error C3383: 'AimAdpCBBase::notify' : in an unmanaged class, a virtual member function cannot have a managed type in the signature
I read the explanation for this in MSDN. And found some articles on google stating this feature is prohibited due to performance overheads with the involved transistions from managed-native-managed. But do you know any alternative to get around this error?
One alternative may be by using gcroot template around the managed type in the native function. This might work with VC7 compiler to generate lib/dll with CLR option. But VC6 compiler doesn't know about gcroot, vcclr.h, mscorlib.dll, /clr option etc.
How to make this work between VC6 compiler and MC++ compiler?
ps:- Another question, Does gcroot support pointer to a managed struct also?
Thank you & Best Regards,
-- modified at 18:47 Monday 23rd January, 2006
|
|
|
|