|
you can import 32 bits icons, but you cannot edit them within visual C++ 6.
when you import an icon, take care also that you right selected the icon item in the list box !
TOXCCT >>> GEII power
|
|
|
|
|
First thanx for ur reply, but the problem is that MFC automaticaly picks the first icon resource as application icon, now when I import the high color icon in vc6, it import it as bitmap resource instead of an icon resource. how can i force vc to import it as icon, or how can i force vc to use the bitmap resource (an icon file) as application icon.
|
|
|
|
|
delete the icon IDR_MAINFRAME from the ressources.
then, reload (import) an icon.
don't forget to save between each actions...
i already saw that problem, but never an icon was loaded as a bitmap either
cheers
TOXCCT >>> GEII power
|
|
|
|
|
I do some programming in VB, i want to learn C++ myself & then VC++ (on Microsoft VC++ only), if we refer any book for eg. "Mastering C++" the header files etc. given in the book are not found in "Microsoft VC++ Program" Pls. suggest the best book or any alternative solution
Thanks in Advance
Suresh
|
|
|
|
|
Hi Sureshkh
I know a book which I find very good. It was very helpful when I started with VC++ coming from Pascal. There are good examples in it which gradually grow harder...
My book is in german but I'm sure there is an english version as well:
Inside Visual C++ 6.0
David Kruglinski / George Sheperd / Scot Wingo
Microsoft Press
ISBN 3-86063-461-5
Marcel
|
|
|
|
|
If you're new to C++ I would recommmend reading "The C++ Programming Language" by Bjarne Stroustrup the original C++ implementor. Only after reading this book would I recommend moving onto "Programming Windows" by Charles Petzold. and/or "Programming Windows with MFC" by Jeff Prosise.
I would not recommend starting with "Programming Visual C++" especially if you're new to C++. This book specifically states in the Introduction that this book is for the professional programmer. This book also assumes you're already familiar with C/C++. There is no "so-called" C++ primer in this book. The book immediately jumps into dicussing MFC and assumes your're familiar with OOP principles in C++, which if you're not, only confuses things.
Regards,
John
|
|
|
|
|
hain buddy i think you live in india.
you can consult two book
1>Learn vc++ 21 days
2>Learn MFC c++ classess by shirley wodte
3>let us vc++
and for some good tutorail consult Codeproject.com
I Think It will Work
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I would like to add a new dataset to a database. I make sure the database is open and that CanUpdate() is true.
Anyway, if the database is empty CRecordset::Update provokes an exception which can not be catched with an try-catch statement.
As soon the database contains at least one dataset, the addnew -> update works without trouble.
Thank you very much for your help!
<br />
m_pT_Schluesseltexte->AddNew();<br />
m_pT_Schluesseltexte->m_Edat_DeutscherText=CTime::GetCurrentTime();<br />
m_pT_Schluesseltexte->m_DeutscherText=DeutscherText;<br />
try<br />
{<br />
m_pT_Schluesseltexte->Update();<br />
}<br />
catch(CDBException* e) <br />
{<br />
AfxMessageBox("Item could not be added:\n"+e->m_strError,MB_OKCANCEL);<br />
}<br />
</small>
|
|
|
|
|
Hi
I am new in MFC.
I made a function.
I would like to create new header file which contains function definition.How to add newly created header file in existing file?
rajesh
|
|
|
|
|
click in the 'Project' menu item, and then, 'add new file'... select what file type you want...
if you are using MFC, you function could be inserted into a class. right click on the class name in the class viewer, then, click on 'add function'...
TOXCCT >>> GEII power
|
|
|
|
|
Hello, I am making a program that allows me to view the files from a remote computer. and I have succeded in doing this. But I also need a function that finds a file on that computer and returns the path to that file to me via winsock. How can I make such a function because I searched in the sdk and there doesn't seem to be one. SO I need a function that can find a file and store it's path in a string so that I can send it to my comp via winsock.
Thank you for your time.
please reply
|
|
|
|
|
Aside from finding a file, are you familar with sending/receiving data through a socket? If not, perhaps a scan through some of the articles here will get you started.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I am familiar with sockets I just want to find a file
|
|
|
|
|
Didn't your first post state that "I am making a program...to view the files from a remote computer. and I have succeded in doing this?" If you are finding remote files and can send data via sockets, what's the issue(s)?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
i was under the notion that far pointer or near for that matter had faded into oblivion with the arrival of FLAT MEMORY windows 9x.
but recently while going through some source code namely winsock.h and winsock2.h i saw it had plenty of far pointers . gethostbyname() for example returns a far pointer to a struct.At the same time msdn tells that far pointers are obsolete. PLEASE comment
if u cant hack it race it or take it to bed then it aint worth having
|
|
|
|
|
You'll notice that the preprocessor resolves FAR to far and then resolves that to nothing. It is simply there for backward compatibility.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
hi david
u said FAR gets resolved to far and far into nothing
and this is for backward compactibility.
i tried using far pointers and got this error (VC++)
#include <stdio.h>
int main(void)
{
char far * a;
char s;
a =&s;
printf("%p\n",a);
}
error C4226: nonstandard extension used : 'far' is an obsolete keyword
if FAR is used instead there is no problem. i included windows.h
if far is obsolete keyword the how is FAR handled
windef.h does something like this
# define FAR far
so hows the resolution done
if u cant hack it race it or take it to bed then it aint worth having
|
|
|
|
|
iwanttolearnc wrote:
windef.h does something like this
# define FAR far
so hows the resolution done
You must've missed this statement a little earlier on in the same file:
#define far
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Far and far are there for backward compatibility as Winsock.h is used for 16 bit and Winsock2 for both.
If you open windef.h you can look for the definition of FAR
It is Illogical to define an inventor by his invention
|
|
|
|
|
I implemented my own IID_IDocHostUIHandler because I needed my own ShowContextMenu method for my own context menu. By doing this I can recognize, if the user clicked on a link, text, image etc. and enable/disable several menuitems depending on the type of object I clicked on.
Now I want to implement my own "Save image as ..." method, but I have no clue how to get a reference to the picture I rightclicked.
Is there anybody out there who can help me? I searched with Google and the MSDN, but did not find anything.
Thanks a lot!
Marcus
|
|
|
|
|
Hi,
I want to send a message from one application to another So i am using SendMessage().Now i want to send a string as parameter to the second application...If i am sending it as WPARAM in the second application its not being received as String value???How can i get it as String???
|
|
|
|
|
Use SendMessage API function with the WM_COPYDATA message
It is Illogical to define an inventor by his invention
|
|
|
|
|
Yes, you need to send via WM_COPYDATA as stated above.
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
I need a software like the following:
This software can detect the other program running, it searches the system memory periodically.
Each program is stored on disk before running.
Each program has its own specific code on disk.
After it is loaded into memory and running by windows, this process memory has some specific code.
So, I need a software that can get the specific code on disk before running, and can scan the system memory and check the specific code in memory, and get this program HANDLE, and can terminate it.
How to do this thing.
Lyndon, Guo
|
|
|
|
|
why not writing it by yourself ?
TOXCCT >>> GEII power
|
|
|
|