|
hello every body
what is the future of vc
ive read that microsoft wants everybody to move over to managed code
what is managed code
is this the end of vc
joooooooe
|
|
|
|
|
is it because code is going to be managed that VC is going to stop ? never !
second thing, every thing can't be managed... watch this
TOXCCT >>> GEII power
|
|
|
|
|
Oh, I think VC will still be around. But to take advantage of newer OS features, probablly you'll have to use Managed C++ or some other .NET language. MFC, in my opinion, is headed towards maintenance mode. It will probably always work and compile, but I don't expect, say, all the new Longhorn stuff to be wrapped in MFC.
Unmanaged code will still be necessary, but it will be mostly for specialized functions and for backwards compatibility.
All that "managed" code is, is code that runs within the CLR framework. It is garbage-collected, can access the .NET runtime, etc.
"Fish and guests stink in three days." - Benjamin Franlkin
|
|
|
|
|
While you speak, developpers are using C/C++ .NET and even assembly
If a new language is born doesnt mean that the old ones die.
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Papa wrote:
If a new language is born doesnt mean that the old ones die.
I know, I work with people still adamant about using FORTRAN ...hey, at least there's no ADA code laying around in my environment
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
I agree with navin's comment regarding MFC.
I have used, am using and will use the MFC for a long while to come, but I can see a point in the distant future where it may fall out of popularity with the programming masses as new development fads takes over.
Regarding VC++, I don't think you have anything to worry about. As far as I'm concerned, VC++ will always be around (OK, maybe not always, but for a loooong time). The libraries in use may vary from MFC, ATL, WTL or the .NET malarky, but the language itself will survive. Vive VC++!
I Dream of Absolute Zero
|
|
|
|
|
RChin wrote:
VC++ will always be around
are you talking about VC++ or C++ ?
TOXCCT >>> GEII power
|
|
|
|
|
I can't imagine coding without using the VS environment, so I guess I was specifically talking about VC++.
I Dream of Absolute Zero
|
|
|
|
|
eh behh, are you a microsoft product ???
poor of you... you won't know the joy of pogramming Linux
TOXCCT >>> GEII power
|
|
|
|
|
Yes I admit it. I am a programming spawn of the Microsoft generation.
I did try tinkering with the Mandrake version of Linux a few years ago, but it scared me so much that I have not touched it since.
Don't get me wrong though, I have no dislike either way, its just that all my time right now involves development and continual learning of Microsoft products.
I Dream of Absolute Zero
|
|
|
|
|
I am making a Win32 project in VC++ v7. When I click on the executable, I want it to run in the task bar. How would I do this? Any help is appreciated.
-Dev578
|
|
|
|
|
What does "run in the taskbar" mean?
Jens
|
|
|
|
|
|
Hi All
I am a fresher in C/C++, I want to read first 2 bytes from a BMP image, when i open the file in "rb" and use scanf to read first 2 bytes, I am unable to read. Can i know the reason.
Thnx in advance
regards
|
|
|
|
|
Off the top of my head,
scanf reads from stdin (e.g. Keyboard on a console
sscanf processes a given string.
fscanf reads from a FILE.
So you are probably using the wrong one!
Iain.
|
|
|
|
|
Since i have two read two bytes from the file I have to use
fscanf
regards
Chandrashekar HS
|
|
|
|
|
fscanf... The mysterious function
If you just want to read 2 bytes I wouldn't use the fscanf function, just use the fread function:
BYTE bytes[2];<br />
fread(bytes, 1, 2, fileptr);
If you insist on using the fscanf function:
BYTE bytes[2];<br />
fscanf(fileptr, "%c%c", &bytes[0], &bytes[1]);
Best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Hi Reichi
Thnx for u'r solution, Actually i used fread to solve the problem but i was interested to know on what occasions do we use fscanf,one occasion as of i know is when u write a file and read it in the same order as u write. Is this the only occasions we use fscanf or is there any other use.
I thought fread takes more memory cycles so thought of using fscanf. So I went inside the fscanf function but could not make out it works, Now i found a solution i need not know
Thanx a lot for u'r help.
Regards
Chandrashekar H.S
|
|
|
|
|
fscanf can be used for almost anything, reading single bytes, ints, whole strings, etc.
fread is MUCH faster than fscanf! When you use the fscanf function the program must first parse your format string before reading and storing the data! If you need speed, use fread.
Best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
I liked the last sentence
sounds like an ad:
"If you need speed, use fread"
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
hmm .. not sure I'd be using fscanf here .. you also havnt said 'what you wish to interpret the first two bytes as, ie a long, char values etc'
I dont have my dev machine up, but I guess what you're asking for is :-
char str [2];
fscanf (pFile, "%c%c", str);
however, I'd be more inclined to use fread(), here's a full example
int main () {
FILE * pFile;
long lSize;
char * buffer; // For two chars as in this example could just use
// static char buffer[2];
lSize = 2;
pFile = fopen ( "myfile.bmp" , "rb" );
if (pFile==NULL) exit (1);
// allocate memory to contain # chars we want
// bit of an overkill in this case
buffer = (char*) malloc (lSize);
if (buffer == NULL) exit (2);
// copy the file into the buffer.
fread (buffer,1,lSize,pFile);
// do something with buffer here
// terminate
fclose (pFile);
free (buffer);
return 0;
}
|
|
|
|
|
Hi Garth
Thnx for u'r help
regards
Chandrashekar H.S
|
|
|
|
|
hi,
We have created an activex Ctrl using MFC.
It has serialize method in its COleControl derived class.
Now myActiveX control is inserted in a powerpoint presentation.
Whenever power point slideshow ends, then the serialize method is getting called.
How to avoid serialize method is getting called at the end of slide show mode?
I am trying by setting SetModifiedFlag(false) but no result.
pls help me.
dadsadasd
|
|
|
|
|
Hello, Im wondering if anyone knows if its possible to get the fileversion over http on a file withouth having to download it?
I know I can do HttpQueryInfo HTTP_QUERY_LAST_MODIFIED but I would really like to get the fileversion, not just what the server thinks is the last modified date...
This is for automatically updating a local file btw... and I guess I could use a version file on the server to read from, but it would be so much smoother to just query the version directly kinda like what GetFileVersionInfo does but for files on the web...
the coolest would off course be if there was an API called GetInternetFileVersionInfo which could do it either via ftp or http protocol...
anyway anyone?
|
|
|
|
|
I'm open to correction, but I'd have to say no.
The logic is fairly simple. The protocols are for fetching any old file. Whereas file version info
(as I understand you to mean) is only available for specific kinds of files. What is the version
info of a notepad file? a bitmap? etc.
One way around could be to have a server side page to return version info on specified files.
eg.
http://foo.bar/versioninfo.asp?file=\downloads\example.exe
could return version info for the specified file, or "Get lost, no version info here!" otherwise.
I hope my musings helped, rather than mislead!
Iain.
|
|
|
|