Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Spiritofamerica

@Spiritofamerica
About
Posts
68
Topics
45
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • some source code or general guidelines
    S Spiritofamerica

    hello, I am trying to find our more aabout writing recognition(or image recognition in general). As in I feed a program a picture of the letter a and it returns the char a. Where can I find out some more about this? about the principles and some code if that is possible also I am looking for some simple socks5 source codes I have seen how to make a socks 4 server but I wanna do socks5 and I could find no sources to learn from them. ok,bye, thank you in advance

    IT & Infrastructure sysadmin tutorial question lounge

  • How to make a program be accepted by spyware software
    S Spiritofamerica

    you have to digitally sign your code check our verisign or some other ca(certification authority) like that

    IT & Infrastructure database testing beta-testing tutorial question

  • Software market of UAE
    S Spiritofamerica

    I just got in to colege(and I hate it but that's besides the point) and I have a guy in my class wo is from Libia and he has already been to college there(he is 27 years old) and now he is going to do 6 more years of college in my country just because the degree he will get from ere will be recognized by a firm in the united arab emirates.However when I spoke more with him he also confessed that his father is already the head there and I asked him(naturally) if he would still go through all this trouble just to get a job there if this wasn't the case and he said that if this wasn't the case nobody would wait for him to finish college so they can hire him, because he isn't that important but if they would have accepted such a deal he would have gone throght the trouble to get a job there because it's a dreamland for coders.However he later told me that the next coder paradise will be in Sudan because there are a lot of skilled chaep coders coming from there and that this country will replace india and pakistan as the source of outsourced code and probably many coders will move there in the future. He said that if his father wouldn't have handed him this opportunity he would have gone to Sudan to be there before it fills up with coders from all over and he is no longer special but hey if he lies to me I lie to you, ok? don't blame me if neither the uae or sudan are any good. I am still trying to find work in romania as a coder. if anyone can help I won't say no peace

    The Lounge question career

  • how do I print a string with " " " in it
    S Spiritofamerica

    hello what do I do if I want to print a string like this: ("how") with fprintf because if I do this fprintf(stream,"("how")"); it gives me compiler errors??

    C / C++ / MFC question

  • simulating keyboard input with SetKeyboardState
    S Spiritofamerica

    because I have the latest version of zonealarm installed on my sytem and it doesn't allow these functions any more I am not trying to do anything illegal with this but I saw it in a article and said hey I should try this and it doesn't work So far za doesn't object to me using this function but it doesn't work for the others you mention above and for PostMessage(WM_KEYUP) it gives me worning messages so there are 2 reasons 1. I don't wanna upset za 2.I wanna do it with this function

    C / C++ / MFC question

  • simulating keyboard input with SetKeyboardState
    S Spiritofamerica

    hello I am experimenting with simulating a key press using the SetKeyboardState while(true) { DWORD thread_acum=GetWindowThreadProcessId(GetActiveWindow(),NULL); UINT vk,scan; LPARAM lparam; vk = VkKeyScan('s'); AttachThreadInput(thread_acum,GetCurrentThreadId(),TRUE); BYTE byKeybState[256]; GetKeyboardState(byKeybState); byKeybState[vk] =! (BOOL)::GetKeyState(vk); byKeybState[vk] =!(BOOL)GetKeyState(vk); SetKeyboardState(byKeybState); AttachThreadInput(thread_acum,GetCurrentThreadId(),FALSE); Sleep(1000); } why does this not work? No key is pressed

    C / C++ / MFC question

  • simplest thread program doesn't work
    S Spiritofamerica

    DWORD WINAPI tredu (LPVOID lpParam ); int APIENTRY WinMain(HINSTANCE a,HINSTANCE b,LPSTR comanda,int arata) { HANDLE hThread; DWORD dwID,dwThrdParam = 1; hThread = CreateThread (NULL, 0,tredu ,&dwThrdParam, 0, &dwID); if (hThread==NULL) MessageBox(0,"a","a",MB_OK); return 0; } DWORD WINAPI tredu (LPVOID lpParam ) { Beep(1000,1000); MessageBox(0,"a","b",MB_OK); return 0; } this does nothing? where am I going wrong the handle is not NULL but nothing happens I am using VC 7.0

    C / C++ / MFC question

  • change entry point address
    S Spiritofamerica

    PIMAGE_DOS_HEADER pDosHeader; PIMAGE_NT_HEADERS pNtHeader; DWORD NewEntryPoint = (DWORD)0x40123456; HANDLE hFile; //Handle for our main file. HANDLE hFileMapping; //Handle to the file in memory. hFile = CreateFile("Example.exe",FILE_ALL_ACCESS,FILE_SHARE_READ,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0); hFileMapping = CreateFileMapping(hFile,0,PAGE_READWRITE,0,0,0); pDosHeader = (PIMAGE_DOS_HEADER)MapViewOfFile(hFileMapping,FILE_MAP_READ | FILE_MAP_WRITE,0,0,0); pNtHeader = (PIMAGE_NT_HEADERS)((DWORD)pDosHeader + (DWORD)pDosHeader->e_lfanew); char apa[1024]; itoa((DWORD)pNtHeader->OptionalHeader.AddressOfEntryPoint,apa,1024); MessageBox(0,apa,"a",MB_OK); (DWORD)pNtHeader->OptionalHeader.AddressOfEntryPoint = (DWORD) NewEntryPoint; this: pNtHeader = (PIMAGE_NT_HEADERS)((DWORD)pDosHeader + (DWORD)pDosHeader->e_lfanew); makes an error like this: Unhandled exception at 0x00411b52 in pan.exe: 0xC0000005: Access violation reading location 0x0000003c. how can I make this work right?

    C / C++ / MFC question performance help tutorial

  • printing a sid
    S Spiritofamerica

    LPSTR * StringSid; ConvertSidToStringSid(ptiUser->User.Sid,StringSid); this gets me the run-time error " the variable StringSid is being used withouth having been initialized so I try to initialize it: LPSTR toader=new char[1024];strcpy(toader," "); LPSTR * StringSid=&toader; but this gets me a error also about access memory violation what is the good way of doing this?

    C / C++ / MFC question

  • printing a sid
    S Spiritofamerica

    yes you are right but anyway I have the sid I just want to print it how do I do that ?

    C / C++ / MFC question

  • linker options casts out "new"
    S Spiritofamerica

    hello I have a question In order to make smaller exes I use some linker options that I got form somewhere I forgot from where I understand pretty much what they do exept one : #pragma comment(linker,"/base:0x13140000") Anyway that is besides the point I put these options: #pragma optimize("gsy",on) #pragma comment(linker,"/RELEASE") #pragma comment(linker,"/ENTRY:main") #pragma comment(linker,"/MERGE:.rdata=.data") #pragma comment(linker,"/MERGE:.text=.data") #pragma comment(linker,"/MERGE:.reloc=.data") #pragma comment(linker,"/SECTION:.text,EWR /IGNORE:4078") #pragma comment(linker,"/FILEALIGN:0x200") #pragma comment(linker,"/base:0x13140000") #pragma comment(linker,"/stub:stub.exe") in a vc 7 win32 empty project and when i put this: void main() { char * ce_scrie=new char[100]; } the project is buildable but then it gives out a error of the debug don't send kind(you know) and when I debug it I get a wierd error I have yet to see Unhandled exception at 0x77f5171c in versiune_de_ie.exe: 0xC0000005: Access violation reading location 0x00000010. the same stuff with vc 6 gets me this: C:\Program Files\Microsoft Visual Studio\MyProjects\SmallVcExe\SmallVcExe.c(31) : error C2065: 'new' : undeclared identifier C:\Program Files\Microsoft Visual Studio\MyProjects\SmallVcExe\SmallVcExe.c(31) : warning C4047: 'initializing' : 'char *' differs in levels of indirection from 'int ' C:\Program Files\Microsoft Visual Studio\MyProjects\SmallVcExe\SmallVcExe.c(31) : error C2143: syntax error : missing ';' before 'type' C:\Program Files\Microsoft Visual Studio\MyProjects\SmallVcExe\SmallVcExe.c(31) : error C2143: syntax error : missing ';' before '[' C:\Program Files\Microsoft Visual Studio\MyProjects\SmallVcExe\SmallVcExe.c(31) : warning C4091: ' ' : ignored on left of 'char ' when no variable is declared why is this?

    C / C++ / MFC question csharp visual-studio debugging help

  • printing a sid
    S Spiritofamerica

    I have a question: supposing I call the LookupAccountSid(NULL, ptiUser->User.Sid, szUser, pcchUser,szDomain, pcchDomain, &snu)) and I get the sid how can I print this sid?

    C / C++ / MFC question

  • InternetGetConnectedState problem
    S Spiritofamerica

    how did you test includeh10?

    C / C++ / MFC question help

  • InternetGetConnectedState problem
    S Spiritofamerica

    thanks man it works now when I am online it correctly shows modem configured as in the 2nd and 4th ifs in your code :) but when I am offline it shows nothing it does not show offline why is this man? and everybody else that might know?

    C / C++ / MFC question help

  • InternetGetConnectedState problem
    S Spiritofamerica

    I want to see what kind of connection a computer has. To this end I am using the InternetGetConnectedState function(if you have any better ideas I am all ears). char * tip_de_conexiune(void) { char respuns[1024]; DWORD tip_de_conexiune; InternetGetConnectedState(&tip_de_conexiune,0); switch(tip_de_conexiune) { case INTERNET_CONNECTION_LAN: { strcpy(respuns,"lan"); MessageBox(0,"lan","lan",MB_OK); } break; case INTERNET_CONNECTION_MODEM: { strcpy(respuns,"dialup"); MessageBox(0,"modem","modem",MB_OK); } break; case INTERNET_CONNECTION_OFFLINE: { strcpy(respuns,"offline"); MessageBox(0,"offline","proxy",MB_OK); } break; case INTERNET_CONNECTION_CONFIGURED: { strcpy(respuns,"configurat"); MessageBox(0,"configured","proxy",MB_OK); } break; } MessageBox(0,"a","b",MB_OK); return respuns; } this works but it returns none of the predefined values either when I am on or offline. I have a dialup connection. any other way of doing this? or what is wrong with this?

    C / C++ / MFC question help

  • mr MFC please do something when I press a key
    S Spiritofamerica

    Rick York wrote: Have you tried catching WM_CHAR ? doesn't work

    C / C++ / MFC question c++

  • mr MFC please do something when I press a key
    S Spiritofamerica

    can you please elaborate on this PreTranslateMessage() where exactly should I put this ? It is not a method that I can use can you please explain more please

    C / C++ / MFC question c++

  • mr MFC please do something when I press a key
    S Spiritofamerica

    hello I am making a program in MFC I have a class for a window I want to achieve this: when a key is pressed something happens. To achieve this I did this I went to class view I right clicked on my class and clicked on propreties I clciked on messages I selected WM_KEYDOWN and from the right column I selected Add OnKeyDown this created a new function: void CViewListaLocatari::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) { MessageBox("toader","toader",MB_OK); if (nChar==VK_DELETE) OnBnSterge(); else CFormView::OnKeyUp(nChar, nRepCnt, nFlags); CFormView::OnKeyDown(nChar, nRepCnt, nFlags); } and this line appeared in the message map ON_WM_KEYDOWN() I changed it to this ON_WM_KEYDOWN(WM_KEYDOWN,OnKeyDown) because it made more sense for it to be like that although I don't know if I did right anyway it doesn't work and no messagebox appears even how do I make it work? or do you know another way to do this?

    C / C++ / MFC question c++

  • grid with comboboxes in CFormView
    S Spiritofamerica

    I am trying to use a grid control with a combobox in one of the fields. it works with CDialog but it does not work with CFormView I did exactly like it says here http://www.codeproject.com/listctrl/nirs2000.asp exept I used it with CFormView and when I click a fild twice(not double click the clicks can be minutes apart) it crashes saying something about wincore.c and it gives me a messagebox with abort retry ignore I can provide the source for anyone that might want to help me. thank you all in advance excuse me for my bad english

    C / C++ / MFC css com help

  • FindFirstUrlCacheEntry problem
    S Spiritofamerica

    this works but it takes up a lot of memory every time this thing completes a cicle the memory usage increases and then after about an hour I get a message from windows telling me that memory is to low I see that you use delete to delete that structure but it doesn't seem to be working because memory usage just keeps getting bigger and bigger Is there no way around this?

    C / C++ / MFC help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups