|
Only half up front?
Software Zen: delete this;
|
|
|
|
|
|
umm but i just need a simple one ... its ok without graphics...
|
|
|
|
|
Ravi Bhavnani wrote:
I can have a working program ready in 3 days, complete with impressive graphics. I charge $250 an hour for my services and require 50% up front.
Which amounts to what? If you work 24x7 for those three days, the total bill would be $18,000 with $9,000 being due up front. Yes?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Yes. Actually I was contemplating an 8-hour billable work day, resulting in a mere $3K, with $1.5K due up front. But of course I was being facetious, as you probably guessed.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
|
here's my code:
void CfirstView::OnInitialUpdate()
{
CfirstView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
AfxMessageBox("APN Initialized failed.");
}
however, the message box did not appear when i execute the compiled file.
can anyone help me on this one? is there some initialization i forgot to add?
|
|
|
|
|
windcar04 wrote:
void CfirstView::OnInitialUpdate()
{
CfirstView::OnInitialUpdate();
Looks like you are going in a constant recursive loop. Call the base class' OnInitialUpdate.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Looks like you are going in a constant recursive loop. Call the base class' OnInitialUpdate.
but i am sure it is not this problem. OnInitialUpdate does not seems to be called at all....
|
|
|
|
|
Even if this is not the error you are trying to find, it is a mistake. You must call the base class for the OnInitialUpdate() call in your routine.
Steve
|
|
|
|
|
thanks for the reply
okay, now this sounds stupid but how do i call the base class in this case?
|
|
|
|
|
If your view is a CFormView , call CFormView::OnInitialUpdate() at the beginning og your OnInitialUpdate() method. Same with other types of views.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
How do you read the value from a memory address using c++ ?
do you use pointer or something ?
|
|
|
|
|
What u want exactly?
If u looking for actual memory address of your volatile memory then I dont think memory address is shown by your pointer is the actual one.
Also u can manipuate data of the memory address of current process in windows at least.
If you want actual physical memory address
u please look for some windows memory management book.
|
|
|
|
|
You can use the * operator. But you have to tell C++ what sort of data to expect at the address, so it knows what type of variable to create, e.g.:
int memoryAddressValue = *((int *)memoryAddress);
if you know an int is at the address (which occupies 4 bytes, so this call reads the address and the next 3 addresses). Memory addresses are just bytes or data, so their meaning is open to interpretation ! This call casts the address to a pointer to an integer - (int*)memoryAddress - and then reads the value from memory - * operator.
Note: if the process doesn't have access to the address (which usually means the address is not the address of one of its variables on the stack, or is not part of the heap space defined by calling new/malloc etc) then expect an access violation exception.
Thanks,
Neil Humphreys.
|
|
|
|
|
thanks for the swift reply humps. I could understand your explaination better than any of those websites out there. Well you know the websites nowadays are providing more junks per piece of useful information.
well i think i understand what you mean, and that exactly is what i am trying to do.
I am trying to get a vaule from the address of another application. I suppose those address are not part of the heap space defined by my source code. So what am are the alternative now ?
* define my source code to include those address ?
well i am super confused stucked now i been bombing the internet all night with no avail... No last plea
anyone could be kind enough to offer some help to write the souce code in c++ to get the value of a WORD from a memory address finder application -- memware -- the address is 12C71560 and probably 0x12C71560 in c++ ?
well fragment of codes or even a clue as to which command would be kind enough.
|
|
|
|
|
Modern operating systems are designed to prevent exactly the type of access you are attempting. As a rule, each process runs in its own address space, and cannot access the address space of other processes. For example, suppose you have a variable in process A whose address is 12C71560 . That address has meaning only inside process A. That same address inside process B only refers to memory that may or may not be allocated to process B.
If you are looking to establish communication between two processes, try here[^]. The topic you are looking for is inter-process communication.
Software Zen: delete this;
|
|
|
|
|
Well i been searching for this one with no answer Glad to have some inputs.
I am trying to read a DWord from a memory location 0x003b9c how do i do that in code ?
indeed i just need to get a peek of the value
|
|
|
|
|
You need to use pointers.
DWORD *pointer = 0x00003b9c;
DWORD ValueAtAddress = *pointer;
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Well i tried that out your code PJ Arends, but i got some errors in as follow is what is keyed into the program.
#include <stdio.h>
#include<stdlib.h>
void main()
{
DWORD *pointer = 0x00003b9c;
DWORD ValueAtAddress = *pointer;
}
i got the following ERRORS
Compiling...
tervalor.cpp
C:\tervalor.cpp(5) : error C2065: 'DWORD' : undeclared identifier
C:\tervalor.cpp(5) : error C2065: 'pointer' : undeclared identifier
C:\tervalor.cpp(5) : error C2106: '=' : left operand must be l-value
C:\tervalor.cpp(6) : error C2146: syntax error : missing ';' before identifier 'ValueAtAddress'
C:\tervalor.cpp(6) : error C2065: 'ValueAtAddress' : undeclared identifier
C:\tervalor.cpp(6) : error C2100: illegal indirection
Error executing cl.exe.
tervalor.obj - 6 error(s), 0 warning(s)
so i correct the code to the following :
#include <stdio.h>
#include<stdlib.h>
void main()
{
int *pointer = 0x00003b9c;
int ValueAtAddress = *pointer;
}
now i get the error as follow :
Compiling...
tervalor.cpp
C:\tervalor.cpp(5) : error C2440: 'initializing' : cannot convert from 'const int' to 'int *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
tervalor.obj - 1 error(s), 0 warning(s)
well i am new and so think i am not going to get it but i will try. Anyway please help me understand. I like this board pretty much and i will continue to use it until i become professional and be able to help people someday.
|
|
|
|
|
Hi there,
I think you need to change the code to:
int *pointer = (int*) 0x00003b9c;
int ValueAtAddress = *pointer;
This is because C++ is strongly typed - and 0x00003b9c is a constant. The compiler assumes you were trying to create a "const int *" and made a typo - the (int*) "casts" the value into the required type.
Thanks,
Neil Humphreys.
|
|
|
|
|
I am using IE web control in my application to access some local HTML or remote URL.
i'm using internetsession & Http classes for this purpose.
When I browse to a certain Local *.html page or remote URL, the file is cached with all its *.gif, *.ocx,...etc in ie catche directories.
e.g when "www.codeproject.com" is saved then "index.asp" is only cached in IE cache so when saved page is opened from directory location then blank space is displayed instead of this file.
I want to do the followings:
1. Get a list (name and physical location on the local HDD)of all these cached files for (only) the currently browsed page.
2. Copy these files to my own cache directory.
Any idea how can I do that with or without webbrowser control. Is there a sample code or class for doing that?
Thanks for the help.
Arooj
|
|
|
|
|
you can use CHttpSession class you pass the url of the page you want to download to the OpenURL method and it reurns a handle to the page as if you are working with a local file which you can save to your hard disk.
try to find examples for OpenURL in the msdn
|
|
|
|
|
MFC Grid Control Exception in Release Build Only!
Can anyone help me with this? I get an unhandled exception error on the NM_CLICK message handling (function OnGridClick I created in my view) in the Release build, that works fine in the debug build!
All of my methods are executed properly but after they've returned there's an unhandled exception that I cannot seem to trace.
Can anyone help?!
|
|
|
|
|
We need more information. Show your code for the NM_CLICK message handler and tell us what the exception is.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|