|
but i am using vc++ 6.0
Compiler genrate error on "CImage"
is there need to include any type of hearder or library?? if yes then which one?
|
|
|
|
|
Yeah you need to include AtlImage.h.
|
|
|
|
|
Hi
Help me.
- Use Visual Studio 2005
- As programming language, use C#
Merge SQLite data with HTML template. This action should be done using one 'Merge' button click.
Show merged document in webbrowser.
Save merged document to PDF.
- Merger
Replaces '##[fieldname]##' in the HTML template document with data from the corresponding
column of the SQLite table.
Create one new page in the document for each record in the SQLite table.
Thank you.
Regards,
Och-Erdene
|
|
|
|
|
Please post it to C# forum.
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi all,
I just want to know how to use crypting and decrypting properly, let say i have a key named "securityKey" and the value of that key is "password" how will I able to set that up? and use it at CryptAcquireContext is there anything i need to do first? What I did is just #define securityKey "password" and i feel stupid doing it I am having a hard time understanding this cryptography please help me.
Thanks,
Jayjay
|
|
|
|
|
When a button is clicked,a csv file should be opened
Keerthi
|
|
|
|
|
what about using CFile or CStdioFile to open the text (csv files are text files) file and reading ?
This signature was proudly tested on animals.
|
|
|
|
|
Please Provide more information on what u need to do.
|
|
|
|
|
In MFC VC++ when a button or a list containing csv files is clicked i should be able to view the contents of the corresponding csv file
These are the contents of the csv file
Sam 24 SoftwareEngineer
Raj 22 ProjectEngineer
Thanks
Keerthi
|
|
|
|
|
u can use ShellExecute() function.
|
|
|
|
|
keerthihaasan wrote: i should be able to view the contents of the corresponding csv file
Where would you like to see the contents ? In a edit control, list control, ... ?
Anyway, you have to split the problem in two parts: first is to read the data from the file. For this you can look at std::ifstream. And second part is to display your data. The way you do it is totally dependent on how you want to display it.
So please provide more information (as somebody already suggested).
|
|
|
|
|
Greetings,
I writing a program that will use the text which is within the Windows File Explorer status bar. Is there anyone who knows how this text is achieved? Is there a way to get this text while it is being sent to the status bar? Also, does anyone know how to get this text yourself without accessing the status bar/details section in the left area of the window?
Thanks in advance
"There is no teacher greater than experience." - Some dude from the PC game Jagged Alliance
|
|
|
|
|
How to use staticly allocated data in function calls with ** pointers?
void function(float** a)
{
a[0][0] = 1.0f;
a[1][3] = 2.0f;
}
int main()
{
float b[10][20];
float c[50][30];
float d[4][32];
function(b);
function(c);
function(d);
}
chesnokov
|
|
|
|
|
You can simply cast, i.e. function((float **)b); but then who will inform your function about the array bounds?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
in that case in function(float** a) e.g. a[0][0] start pointing to the wrong address, SEH is invoked.
_msize() tells all the array bounds.
chesnokov
|
|
|
|
|
Hi Friends,
I have written below code for checking whether windows machine is locked or not but its gives always window is locked though its not locked. Could anyone suggest what is wrong here or can give alternative solution?
bool lockedHost = false;
HMODULE hUser32;
FARPROC LockWorkStation;
hUser32 = GetModuleHandle("user32.dll");
if (hUser32) {
LockWorkStation = GetProcAddress(hUser32, "LockWorkStation");
if (LockWorkStation) {
lockedHost = true;
MessageBox(0, "locked1", "Info", MB_OK);
}
}
Thanks in advanced,
Paresh
|
|
|
|
|
Though I don't know how to check whether the workstation is locked or not.
But I do know what wrong with your code!
1、LockWorkStation = GetProcAddress(hUser32, "LockWorkStation");
Only return the function pointer of "LockWorkStation".Then you can use this function!
2、LockWorkStation is the function to lock workstation, not to check whether the workstation is locked or not. Do check MSDN!
Gurus may answer your question!
|
|
|
|
|
|
Hello everyone,
I am debugging an access violation exception dump (code xxxxxxxx access violation for memory address, exception code 0x00000005). It is 32-bit x86 code release version. I have used the command dd to examine the memory address (not code address) which reports access violaton. The content of the address is displayed as ???????? in debugger.
I double checked for the memory, it does not belong to any stack (using thread window to iterate all thread stack address space) memory address space, does not belong to any binary code (using load model window to verify).
My question is, for memory address which reports access violation and which content is ????????,
1. is it the memory address not allocated (or reserved) in current process virtual memory space?
2. or the memory address deleted? I have made some test that for the memory deleted on heap, its content will be marked with 0xfe, not ?. But I am not sure whether when the heap memory is recycled by OS memory mamagement system, it will be remarked as ????????
3. Or something else possible?
thanks in advance,
George
|
|
|
|
|
|
Sure Hamid!
I am using both Windbg and Visual Studio to debug this. Any comments or ideas to my original question?
regards,
George
|
|
|
|
|
Did you use of GetProcAddress on your code?
|
|
|
|
|
No, Hamid! The error happens when I tries to access a member variable of an instance of a class allocated on the heap. Any ideas?
regards,
George
|
|
|
|
|
Can you show your code that it generated this error?
|
|
|
|
|
Thanks Hamid,
The code is,
foo = someconstant;
The exception reports the accessing for foo variable throws the exception, any ideas?
regards,
George
|
|
|
|