- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
26 Posted Topics
you can also have a look at [url=http://msdn.microsoft.com/en-us/library/ms682073%28VS.85%29.aspx]msdn's console functions[/url](such as AllocConsole), and [url=http://msdn.microsoft.com/en-us/library/ms682528%28VS.85%29.aspx]info[/url]
well, after hours apon hours of serching for this, i've come up with nothing but a few sources for some plugins[from thecodeproject.com], which don't cover what I need: Basically writing to the currently active (source) file(at the position of the cursor/caret), like so(highly simplified) [code=cplusplus] fprintf(pOpenDocument,"/*\n\tTime: %s\n\tDate: %s\n\tAuther: %s\n\tReason & …
[QUOTE=1o0oBhP;76693]had a go in dev c++, was the same as everything was pre-defined (__declspec ect...) but the template put a BOOL APIENTRY main function in mine with different states? is that a basis of threading? (it had things like attaching / detaching ect.. in it)[/QUOTE] This is how the dll …
the is a free vc6 installer for a freeware version on ms' ftp, but i never got it to work... code::blocks is very nice, so are the new EE editions of the ms products
[QUOTE=Ancient Dragon;627129] And stop using VC++ 6.0 -- its too old now. Download the free VC++ 2008 Express because its a lot better c++ compiler.[/QUOTE] this is a moot point, it depends what your using it for etc, as an example: it still optimizes WAY better than dev-cpp's mingw gcc …
you might also want to use a debugger like ollydbg to trace through the code relating to the file access, just break on the fread calls etc and then stick a memory break on the files "image"/memory block, and see how its treated
[code] *B= (double**)malloc(sizeof(double*)*4); [/code] you should try doing [code]double** B = (double**)malloc(sizeof(double) * 4 * 4); [/code]
check that the file type doesn't already exist/is already registered by another prog
we need to see what you done so far to be able to help you, as no one here is going to do it for you
Not sure exactly what you need it for but you may want to look at the Allegro and/or SDL libraries media functions, as they have alot of tutorials, else you might try searching for a 3rd party similar to what you need(dev-cpp has many devpacks that might be of use)
put the switch in a while loop like [code] while(c != 'e') //or any thing else { //switch code... }[/code]
well the cheap way would be to use DeleteFile(char* szPath); and start a new file(not what is specified :P), or try using fopen(...); which has a definitive overwrite mode, also sometimes a file won't appear if it is still "open" and has had little or no data written to it, …
you can also make it into a class like so [code] class DSErrorLog { private: FILE* LogHandle; char szLogName[32]; char szTimeStamp[64]; char szLastDeleted[32]; public: DSErrorLog(); ~DSErrorLog(); void WriteToLog(char* szText); void ErrorLogPurge(int DaysOld); void WriteError(char* szText, char* File, int Line); void CreateTimeStamp(char* Format, bool Millisecs); bool __cdecl WriteToLogFormatted(const char* format, ...); …
try this to reverse the string then use itoa, wsprintf, typecast etc to convert to an int [code] DWORD __fastcall ReverseString(char* sz) { return *(DWORD*)(&sz); }[/code](yes that only works with numbers up to four digits, else you need a for loop(or use a QWORD)
[QUOTE=technogeek_42;556942]owh i get it but hwo about in million [/QUOTE] For that you need to make more arrays, [QUOTE=technogeek_42;556942] can u make me some codes of that like this #include <iostream.h> main() blah blah blahblahblah [/QUOTE] This is lazyness, but i have nothing to do atm so.... [code] #include <cstdlib> …
you should use memcpy instead of strcpy for this, if you use it, just keeps similar grouped stuff together
if you want is to loop infinitely just stick the main part in a while loop and use a condition that is always true like: [code] while(1 == 1) { //your code } [/code]. the do loop performs the operation first then checks the condition, useful for file ops.
Its an empty CONSOLE project, the others are WinMain for win32 and DllMain for dlls
or you can use use a hex editor, just depends what you are skilled with
you can use 2 ' to do this instead of ", also you'd need to parse for a space or some for of identifier to tell weather is the company name like(for which you might wanna use string stream (sstream.h) to acomplish: if(buffer[posinstream] == " " || buffer[posinstream] == "_") …
yes that would work, thought you don't need to bracket a single statement under an if() ie [code] if(1 == 1) { return true; } [/code] is the same as [code] if(1 == 1) return true; [/code] you only need curly brackets if more than one piece needs execution [code] …
Also have a look at [url]www.cplusplus.com[/url] or [url]www.cprogramming.com[/url] if your not a fan of M$VC, useful resource aswell, but some stuff tends to be hidden on cplusplus(like the tutorials...)
[QUOTE=technogeek_42;556889]u can download it with out any payment[/QUOTE] I assume this is a question, yes its free(though not up to date, it also has spin offs like wxWidgets) Another good an free compiler is Code::Blocks, combined with the freeware version of QT or SDL depending on your aims and you …
If you don't have the source for the program, you can use something like resource hacker to replace them(works for icons and sounds too).
[code=C++]#include <fstream> #include <iostream> using namespace std; char * buffer; long size; int main () { ifstream infile ("d2gfx.dll",ifstream::in); ofstream outfile ("d2gfx.dll",ofstream::out); infile.seekg(0xBD30,ifstream::beg); size=infile.tellg(); infile.seekg(0xBD30); buffer = new char [size]; infile.read (buffer,size); cout << buffer << "\n"; system("pause"); outfile.seekp(0xBD30,ifstream::beg); size=outfile.tellp(); outfile.seekp(0xBD30); outfile.write ("D2Mad.dll",10); delete[] buffer; outfile.close(); infile.close(); return 0; }[/code] …
first off this is my first post on this board, second i have knowledge of asm and debugging but by no means am i a guru(or the such). What i am trying to find is a way to track down the powerpc equivalent of certain x86 asm instruction(or a way …
The End.