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
C

Cyberizen

@Cyberizen
About
Posts
22
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • webcam implementation in vc++
    C Cyberizen

    Well VisionSDK doesnt have any dependencies that is you do not require a version of DirectX for that. Run the samples that come with the installation and do read in the documentation too This will clarify a lot of things. Basically VisionSDK supports Webcams that support Video for Windows(VFW) which virtually everybody webcam supports. If you are more comfortable with the COM style architecture than I suggest you go for DirectShow as Keskinen has suggested. Any more queries are welcome. I can help with implementation of Webcam interface Regards Ahmed Ajmal

    C / C++ / MFC c++ json help

  • webcam implementation in vc++
    C Cyberizen

    Hello There is an SDK available from Microsoft Research called "Vision SDK". With this SDK you can connect to your webcam and capture images in a variety of formats. I have worked on a project using this SDK in my 3rd year project in BS. Tell me if you want any additional help. PS. Oh and i just learned that Microsoft has sold its Vision SDK product to some german company which might make it commercial so it might not be publicly available. Fortunately i found a website for you that allows you to download the microsoft version visit http://www.cs.ualberta.ca/~jiayuan/414/ Regards Ahmed Ajmal

    C / C++ / MFC c++ json help

  • Serializing the valarray class(STL)
    C Cyberizen

    Hello gurus I need to serialize an STL type called valarray but the the Serialize function is giving me errors regarding the << and the >> operator is there anyway or alternative to get over this thing please help Regards Ahmed

    C / C++ / MFC c++ help

  • fast data access
    C Cyberizen

    Hello gurus well actually i am looking for a data structure or something like that for fast access to data. Actually my problem is that i have this image file dimensions size is 200 X 200 and what actually i want to do with the image is extract exhaustively 20X20 parts and make some calcualtions on that window from the image and store them. At present i am storing each 20X20 window in a vector object actually this takes a lot time when i want to retrieve the window and make calculations is there some way i can store this 20X20 window somewhere in the memory my point is fast access where i retrieve the values please help Regards Ahmed Ajmal

    C / C++ / MFC help graphics performance

  • Really Dumb (easy) Question
    C Cyberizen

    well the . and the -> actually do the same thing they server the same purpose but the difference is that the '.' (dot operator) is used when are dealing with a NORMAL object while the -> operator is used for a POINTER object like check this little snippet below class foo { public : int i; }; when making an object of this class foo myobject; myobject.i = 0; //this is the normal way to access the i variable now look at this object foo *pobject; //now this is a pointer to object pobject->i = 1; //this is way i will be accessed

    C / C++ / MFC question c++

  • problems with getting RGB values
    C Cyberizen

    Hello i have been trying to get RGB values from a 24bit BITMAP following is the code : bitmap = (HBITMAP)LoadImage(NULL,path,IMAGE_BITMAP,0,0, LR_LOADFROMFILE | LR_CREATEDIBSECTION); ::GetObject(bitmap,sizeof(bm),&bm); BYTE *pix = (BYTE*) bm.bmBits; //bm is of type BITMAP pixels pixel[216][331]; //file opened is 216 * 331 CClientDC dc(this); int k = 0; for(int j = 0; j <= height-1 ; j ++) { for(int i = 0; i <= width-1; i ++) { pixel[j][i].blue = pix[k++]; pixel[j][i].green = pix[k++]; pixel[j][i].red = pix[k++]; dc.SetPixel(i,j,RGB(pixel[j][i].red,pixel[j][i].green,pixel[j] [i].blue)); } } I am trying to figure out the problem i cant find it help me please the result that is displayed is not the correct image i mean its all inverted and rotated i dont understand the pixels values are there how to ARRANGE them please help me out

    C / C++ / MFC help graphics tutorial

  • getting RGB values from BMP
    C Cyberizen

    Hello people well i am really having a hard time handling BMPs. My object is to get the RGB values from a BITMAP image which can anything like a 8 16 or 24 bit image. for simplicity i am using just the 24 bit BMP i have used BITMAP HBITMAP and CBitmap class in the end i got the bytes from the 24 bit image like this BYTE *pix = (BYTE*)bm.bmBits; where bm is of type BITMAP but something is wrong when i am drawing the pixels on the screen using the setPixel function i image is not drawn correctly and i dont seem to figure out the problem please help me i need the RGB values for an IMAGE PROCESSING PROJECT i am finding it really hard to get the values and please do not refer to me packages like cximage and stuff i dont want to use any library just tell me how to get the RGB values from a BMP file

    C / C++ / MFC graphics help tutorial

  • Displaying Bimap
    C Cyberizen

    Hello people a newbie here. I want to display a BMP image by its path like the BMP file is located in my hard drive and i am using the file open dialog box to get the path i get the path but i dont know what to do next like the CBitmap class only takes resources string that are loaded from the exe how do i pass the path to the CBitmap class so that it opens the BMP from a location in my hard drive pleas help Regards Ahmed Ajmal

    C / C++ / MFC help question

  • Socket Programming : connecting to server
    C Cyberizen

    hello ppl i am a newbie to socket programming i am having problems in connecting a client to a server. This is what my SERVER code looks like : int MainFrame ::OnCreate(LPCREATESTRUCT lpcs) { if(!AfxSocketInit()) MessageBox("Socket init error"); //create the server first if(server.Create(1000,SOCK_STREAM)) MessageBox("Server Socket Created"); CWnd::SetTimer(1,1000,0); return CWnd::OnCreate(lpcs); } void MainFrame::OnTimer(UINT nIDEvent) { if(!server.Listen()) MessageBox("Server not responding"); CWnd::OnTimer(nIDEvent); } What this code tries to do is that it creates a server on PORT 1000 and listens for incoming connections after each second now the second part that is the CLIENT has the following code int MainFrame ::OnCreate(LPCREATESTRUCT lpcs) { if(!AfxSocketInit()) MessageBox("Socket init error"); if(client.Create(2000,SOCK_STREAM)) MessageBox("Client Socket Created"); return CWnd::OnCreate(lpcs); } void MainFrame ::OnConnect() { while(client.Connect("172.16.64.89",1000) != TRUE ) client.Connect("172.16.64.89",1000); MessageBox("Connected to Server"); } Everything goes fine here except when i am trying to listen to the server using Connect it never suceeds please help me out whats wrong with my code what modifications are to be made will be very much thankful Regards Cyberizen

    C / C++ / MFC help sysadmin

  • Socket problem here
    C Cyberizen

    Hello ppl following is the code snippet if(!AfxSocketInit()) AfxMessageBox("Socket Init Error"); if(mysocket.Create(6000,SOCK_STREAM) == TRUE) AfxMessageBox("Socket Created"); if(server.Create(3000,SOCK_STREAM) == TRUE) AfxMessageBox("Server Socket Created"); if(server.Connect("172.16.65.122",6000) == TRUE) AfxMessageBox("Connected to client"); else { int a = server.GetLastError(); AfxMessageBox((CString)a); } what i am trying to do here is that i need to connect to the same machine using socks for that reason i have created two sockets one that actually should act as a client and other as a server now both the sockets are created successfully but server is unable to connect to the client (remember client is the same machine as server) the error no that is returned is 3 and i dont know what it means please help me out i am a socket newbie thanks

    C / C++ / MFC help sysadmin

  • help socket newbie
    C Cyberizen

    hello ppl well need some start on socket programming i wrote the following code in Visual C++ 6.0 CSocket mysocket; mysocket.Create(); now the problem is here the Create function returns FALSE i tried to find the last error by using the function getLastError and the error no is 109 and i cant get a description of what it means i have used the second version of Create function as well i tried a loop on all the 65535 ports mysocket.Create(i,SOCK_STREAM,"172.16.64.97") but that didnt work either please help me out i have even tried the CAsyncSocket class but that also fails to create a socket please help me out

    C / C++ / MFC help c++ announcement

  • software and security
    C Cyberizen

    hello people my question is how do i make my software secure that is i have this application which i want the users to use for it a limited after which they must have a license how i do write code so that the application expires in a particualar time i heard that softwares that expire with time write something on the registry so dont you think anyone can just open up the registry and edit the setting and make the software work forever so how to make it secure any methods anyhing would be appreciated and also after the user has acquired a license where do i keep the license information and all please help regards Ahmed Ajmal

    C / C++ / MFC question windows-admin security help tutorial

  • displaying images
    C Cyberizen

    hello ppl ok this question is going to be a pretty long one what i want to do this time is display a BMP image which is in 24 bit format the normal operation like creating a compatible device content and using BitBlt is not the solution so what do i have to do also i want to display a GIF image which is actually in 89a format that supports animation so how do i display an animated GIF any code or anything would be appreciated regards Ahmed Ajmal

    C / C++ / MFC question

  • Getting information from a DLL
    C Cyberizen

    yeah ryan actually i tried the DEPENDS tool that installs with the Visual Studio and yes i did find out the functions their names but not any other imformation and what do u mean by EXPORT TABLE how do i use that Ahmed Ajmal

    C / C++ / MFC help json tutorial question

  • Getting information from a DLL
    C Cyberizen

    hello ppl what i am trying to do here is find out what functions are available for a particular DLL for example most of the API function are contained in USER32.DLL file we can write code for accessing functions like SendInput and SetLayeredWindowAttributes that is we can explicitly link the DLL file and get those functions to work now what i want to do it there is a third party DLL that i would like to explicitly link now the problem is with USER32.dll i am aware of the functions their return types and their parameters but such is not the case with a third party DLL how do i know what functions this DLL contains the parameters the return type and everything any help would be appreciated Regards Ahmed Ajmal

    C / C++ / MFC help json tutorial question

  • processing video from a TV Tuner card
    C Cyberizen

    hello ppl i have a TV tuner connected to my PC now what i want to do is that i want to inteface with the TV tuner card and find out how many channels are currently running basically what i have to do is grab an image from each channel and extract the logo out of each and every channel that the card is running so the part is about image processing but how do i start i mean i have to first interface with TV TUNER CARD. is there any SDK available or do i have to get a MANUFACTER independent SDK also the TV signals are transmitted via a coaxial cable that means i am not talking about interfacing with a device like a DV cam that is connected to the CARD but rather i am interested in the channels please help me out any help clue or anything would be appreciated bye

    C / C++ / MFC help question

  • Create CEdit dynamicly
    C Cyberizen

    hmm well you dont need to create a class derived from CEdit. Just Create a CEdit object in the OnCreate Event check out the code below void MainFrame ::OnCreate(LPCREATESTRUCT lpcs) { CRect rect; rect.SetRect(10,10,100,30); CEdit *myeditbox = new CEdit; CEdit *myedit = new CEdit; myedit->Create(WS_CHILD|WS_VISIBLE,rect,this,300); } regards Ahmed Ajmal

    C / C++ / MFC question

  • How to add a Control In a List Control
    C Cyberizen

    hello people I want to add a COMBO BOX or any other Windows control in a LIST CONTROL that is the COMBO BOX should appear as if it were an item of the LIST CONTROL Regards Ahmed Ajmal

    C / C++ / MFC tutorial

  • URGENT HELP REQUIRED:mad:
    C Cyberizen

    Hi ppl well my problem is with explicit linking here.Actually there is this function called "SetLayeredWindowAttributes" that i want to link explicitly following is the code: typedef BOOL (CALLBACK*LPFNSETLAYEREDWINDOWATTRIBUTES)(COLORREF,BYTE,DWORD); ... BOOL CMainFrame ::TranparentWindow() { HINSTANCE hDLL; // Handle to DLL LPFNSETLAYEREDWINDOWATTRIBUTES lpfnSetLayeredWindowAttributes; // Function pointer COLORREF color = RGB(100,100,100); BYTE alpha; DWORD what; hDLL = LoadLibrary(_T("USER32.DLL")); if (hDLL != NULL) { lpfnSetLayeredWindowAttributes = (LPFNSETLAYEREDWINDOWATTRIBUTES)GetProcAddress(hDLL,"SetLayeredWindowAttributes"); if (!lpfnSetLayeredWindowAttributes) { // handle the error FreeLibrary(hDLL); return FALSE; } else { // call the function BOOL status; status = lpfnSetLayeredWindowAttributes(color,alpha,what); } } } I am calling this function on the OnCreate message handler there are no linker problems as well when the program is executed it give me an error regarding ESP tellimg me something about conflicting calling conventions anyone having any idea wats the problem here please do tell me Thanks in advance Ahmed Ajmal

    C / C++ / MFC help

  • Explicit Linking problem
    C Cyberizen

    Hi ppl well my problem is with explicit linking here.Actually there is this function called "SetLayeredWindowAttributes" that i want to link explicitly following is the code: typedef BOOL (CALLBACK*LPFNSETLAYEREDWINDOWATTRIBUTES)(COLORREF,BYTE,DWORD); ... BOOL CMainFrame ::TranparentWindow() { HINSTANCE hDLL; // Handle to DLL LPFNSETLAYEREDWINDOWATTRIBUTES lpfnSetLayeredWindowAttributes; // Function pointer COLORREF color = RGB(100,100,100); BYTE alpha; DWORD what; hDLL = LoadLibrary(_T("USER32.DLL")); if (hDLL != NULL) { lpfnSetLayeredWindowAttributes = (LPFNSETLAYEREDWINDOWATTRIBUTES)GetProcAddress(hDLL,"SetLayeredWindowAttributes"); if (!lpfnSetLayeredWindowAttributes) { // handle the error FreeLibrary(hDLL); return FALSE; } else { // call the function BOOL status; status = lpfnSetLayeredWindowAttributes(color,alpha,what); } } } I am calling this function on the OnCreate message handler there are no linker problems as well when the program is executed it gives me an error regarding ESP tellimg me something about conflicting calling conventions anyone having any idea wats the problem here please do tell me Thanks in advance Ahmed ajmal

    C / C++ / MFC help
  • Login

  • Don't have an account? Register

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