|
can anybody help to plot Graph on Notepad using VC++ 6.
There Is Nothing Right Or Wrong
|
|
|
|
|
What do you exactly mean by saying that "plot a graph on notepad"? Can you provide some more details?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
If you mean something like drawing a graph using only ASCII characters, try looking Here[^].
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
|
Posting the same question with a different subject, within a few hours of the last time, is not going to get you help any faster. While your question is being digested by others (which might take 24 hours for everyone to see it), experiment more with your code.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I use IActiveScript (JScript) in my application (MFC ActiveX VC2003), i try to retrieve argument modified or "return value" from java function, but it don't work...
The java function is call the argument is good, but the variable modification in java do not appear in c++ code when return ?
Thanks,
Arnaud,
<code>
// Call initialize function (call javascript function).
long Result = m_pScript -> FireOnInitialize ();
// Idl declaration.
[id(1), helpstring("method FireOnInitialize")]
void OnInitialize ([out] long * pResult );
// Event map from cpp.
BEGIN_EVENT_MAP(CTestCtrl::CTestScript, CScript)
EVENT_CUSTOM("OnInitialize", FireOnInitialize, VTS_PI4)
END_EVENT_MAP()
// Function from h.
LONG FireOnInitialize ()
{
LONG Result = 5;
// Call event 1.
FireEvent ( 1L, EVENT_PARAM(VTS_PI4), &Result );
return Result;
};
// Function from js.
function Script::OnInitialize ( value )
{
Display ( "OnInitialize" )
if ( value == 5 )
{
Display ( "5" );
}
else
{
Display ( "?" );
}
value = 3;
// Every things ok.
return 2;
}
</code>
<div class="ForumSig">...</div>
|
|
|
|
|
I am not sure if you are seeing a limitation of Connection Points themselves in the IActiveScript scripting implementation, or a limitation of the JavaScript script engine itself. You can try to see if the same thing happens with a VBAScript/VBA event-recipient to be sure...
But in general connection points are not a reliable way to return information from an event recipient, especially when multiple event receivers are involved, or if a poor implementation is forwarding the event to something else, because it might not be forwarding the return value correctly.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Is it possible to use the handle returned by GetClusterResourceKey and and pass it to RegQueryValueEx to read the data values ?
i have done but RegQueryValueEx returns ans error code of 6, that is for INVALID HANDLE...
Otherwise please tell me how to read the data values from the handle returned GetClusterResourceKey ?
|
|
|
|
|
Look up the documentation for that function, you will find the related ones like ClusterRegQueryValue(...) .
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Hi again,
I have a question regarding a locking a dialog in place. I have a dialog box that is maximised to occupy thw whole screen. I wish to make it so that the operator cannot minimise it, or move it. Effectively it will become the desktop - is there a way to do this? Other applications can be opend over it, but when they are closed, or minimised, the desktop will always revert back to the main app. Any suggestions - Thanks for looking
69Bay
|
|
|
|
|
In the resource editor, uncheck the buttons support minimize and maximize. Then use ShowWindow (WS_MAXIMIZED) by creating the dialog, or take the dimensions of the desktop and use SetWindowPos () to this sizes.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
Hello,
How can I find out value of a constant (was decalerd as #define in the h file of the exe), if I only have the pdb and the exe file ?
I have found the ascii name of the constant in the pdb file, but couldn't figure out where the value resides.
Thanks,
Eyal
|
|
|
|
|
I do not think that you can (at least not with the C/C++ implementations I am familiar with)...
When you use #define , the pre-processor replaces the defined identifier with its value. So, if you have the following:
#define <code>THE_VALUE 42</code>
for( int iValue = 0; iValue < <code>THE_VALUE</code>; iValue++ )
{
} Then you cannot scan the EXE file for THE_VALUE because the pre-processor will replace it with the constant value 42 , so after the pre-processing phase, the C file actually looks more like this:
for( int iValue = 0; iValue < <big><code>42</code></big>; iValue++ )
{
} Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
OK,
So the pdb only conatins the name of the define and not the value itself ?
|
|
|
|
|
I am not certain about the PDB, but at first blush I would not expect it to contain #define d values.
I might expect to see values that were set up using something like const int THE_VALUE=42 because they are handled by the C++ compiler (not the pre-processor), however. I could be wrong on both counts...
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Hi all
There are two edit box in my project and I want to switch the keyboard cursor from one to another without using the mouse and the tab button.For example when I write "switch" to first edit box I want that the keyboard cursor should go to second one.How can I do that?
Thanks
|
|
|
|
|
|
In a dialog, you may find WM_NEXTDLGCTL works better than SetFocus().
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hi all,
I need to read a particular bit on kernel memory which will be owned by a device driver.
I am using ZwOpenSection and ZwMapViewOfSection API's to map the particular page on the kernel memory. But it returns only 'FF' in all bytes. But the same stuff works with pages other than that are device driver oriented.
In a nutshell,
I am just getting a device driver load address and trying to read the same address from the physical memory. But it simple shows 'FF' in all the bytes.
Can you pls share if you have any experiances in this regard.
Thanks in advance.
Selva
|
|
|
|
|
1.) A valid kernel mode virtual address is always above 0x8000000
2.) Check that ZwMapViewOfSection call is not returning error STATUS_CONFLICTING_ADDRESSES.
3.) See if this helps: http://support.microsoft.com/kb/189327[^]
Best Wishes,
-Randor (David Delaune)
|
|
|
|
|
Thanks a lot Randor.
I have already referred the link and i am proceeding in the same way.
Actually my physical memory reading works for some other address but not to the addresses that are device driver oriented.
I have just calculated the cdrom.sys driver's load address and tried to read the same from the kernel memory. But it simple shows "FF" in all bytes
Any thoughts....
Selva
|
|
|
|
|
Hi,
Is there a way to inject parameters (argc and argv) to my application
using the visual studio , and not from the command line?
(I'm using visual studio c++ 2005).
Thanks,
Eli
|
|
|
|
|
eli15021979 wrote: Is there a way to inject parameters (argc and argv) to my application
using the visual studio , and not from the command line?
(I'm using visual studio c++ 2005).
I guess you want to pass command line using VS2005 then goto
Project properties dialog->Configuration properties->Debugging->Command arguments
Enter command line here. Don't worry about argc .
|
|
|
|
|
Hi Nibu,
Thanks - it works....
With best regards,
Eli
|
|
|
|
|
i have made a table in mysql which have a field doc of blob type
now i take a edit button and a button when i click on button system drive opens
and i select a document
now when i press another button names submit i want that this document is
stored in mysql but it will not stored please help me
i use this to submit:
GetDlgItemText(IDC_EDIT1,f);//doc is stored in f as i supposed
sn.Empty();
sn="insert into files values(\'" + f + "\')";
thanks
hi
|
|
|
|