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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
B

Babayan Hovhannes

@Babayan Hovhannes
About
Posts
16
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How resize image, GDI+. Thanks forehead.
    B Babayan Hovhannes

    I have opened image file, and create Graphics object from it. Image image(L"myImage.png"); Graphics grImage(&image); How can I resize myImage.png ? yiy

    C / C++ / MFC graphics question winforms

  • How to use the IP Control
    B Babayan Hovhannes
    1. DWORD addr; ((CIPAddressCtrl*)GetDlgItem(IDC_IPIDDRESS1))->GetAddress(addr); 2) BYTE b1,b2,b3,b4; ((CIPAddressCtrl*)GetDlgItem(IDC_IPIDDRESS1))->GetAddress(b1,b2,b3,b4); If address is 212.176.73.161, b1=212, b2=176, b3=73, b4=161. yiy
    C / C++ / MFC tutorial question

  • What is order of colors in bitmap pixel array?
    B Babayan Hovhannes

    Each pixel is COLORREF value. sizeof(COLORREF) is 24. 24/3=8. It means, that you can describe each pixel with three 8-bit values. So, naturally, you have only 24-bit dib in bitmap pixel array. And it is true. yiy

    C / C++ / MFC question graphics data-structures

  • Simple questions for the experts
    B Babayan Hovhannes

    I think, that the better way to do this is declare m_var as static variable. After that you can use this variable as CL1::m_var. ------------------------------------------------------------ class CL1 { public: CL1(); //constructor virtual ~CL1(); //destructor public: static int m_var; //your variable public: void SetVariable(int value) }; CL1::m_var=0; //linking will fail without this. CL1::Cl1() { } CL1::~CL1() { } void CL1::SetVariable(int value) { m_var=value; } #include using namespace std; int main() { CL1 myclass; int user_val; cin>>user_val; myclass.SetVariable(user_val); cout<<"After input "<

    C / C++ / MFC help question c++ tutorial

  • What is order of colors in bitmap pixel array?
    B Babayan Hovhannes

    Each pixel has BGR format. I know this from bitmap displaying in OpenGL. yiy

    C / C++ / MFC question graphics data-structures

  • Simple questions for the experts
    B Babayan Hovhannes
    1. You can declare your variable in global scope. 2) You can use pointer to the variable in the first class in the last two classes. yiy
    C / C++ / MFC help question c++ tutorial

  • How to show correct visual styles in Windows XP for CTabCtrl when tabs at the bottom ?
    B Babayan Hovhannes

    I have applied XP visual styles to CTabCtrl by using "*.manifest" file. The tab control has same look in the top of window and in the bottom of window. Ask me more detailed, please, probably I can help you. yiy

    C / C++ / MFC help wpf tutorial question

  • Image Processing
    B Babayan Hovhannes

    See GDI+ graphic library from Platform SDK. I remember, I have seen some such code here. yiy

    C / C++ / MFC help

  • refference a pointer to another process !!!
    B Babayan Hovhannes
    1. You can use Automatization. You must create type library from View class of program2, and after calling CreateProcess in program1, attach to running Program2's instance. You can provide values, with which you would be able to change variable values in program2, from program1, execute some code in program2(methods), etc. program2 will be server of Automatization and program1 will be client n this case. yiy
    C / C++ / MFC question c++

  • Cannot load DLL, please Help !
    B Babayan Hovhannes

    Thanks !! yiy

    C / C++ / MFC performance help

  • Cannot load DLL, please Help !
    B Babayan Hovhannes

    Joel, do you know any program, which shows list of exported functions of specified DLL ? Thank you for advice. yiy

    C / C++ / MFC performance help

  • Cannot load DLL, please Help !
    B Babayan Hovhannes

    I have provide icmp.dll with which I have tested my program with my program, but on the other computers with Win2000 it don't work, yiy

    C / C++ / MFC performance help

  • Cannot load DLL, please Help !
    B Babayan Hovhannes

    I try to load icmp.dll and call three functions from it (by address): IcmpCreateFile, IcmpSendEcho, IcmpCloseHandle. On WinXP it works without any errors, I recieve right functions' addresses, call this functions without problems, etc. On Win2000 i recieve correct handle of loaded icmp.dll but: 1) When I call GetProcAddress() for any of this three functions at first time, I recieve positive(!=NULL) value, but when I call function by this address, I recieve following message: ".., Memory could not by written,...". 2) When I call GetProcAddress() for last two functions, I recieve NULL. yiy

    C / C++ / MFC performance help

  • Dialog menu with Windows XP display glitch?
    B Babayan Hovhannes

    You can try to write "*.manifest" file for your program. With this file your program will appear in 2000-look in Win2000 and with XP-look in WinXP. Your controls also will change their appearance and look. You can see "Using Windows XP Visual Styles" topic in MSDN. 1) Add a file called YourApp.exe.manifest to your source tree that has the following XML format: Your application description here. 2) Add the manifest to your application's resource file as follows: CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.exe.manifest" yiy

    C / C++ / MFC c++ question

  • loading tiff, bmp and DIB file in MDI application
    B Babayan Hovhannes

    I have downloaded Microsoft SDK. This SDK contains "*.lib" and "*.h" files for GDI+ graphic library. With this library you can load tiff, jpeg, gif, bmp formats with three lines of code. For example: //for opening image... Image *pImage; pImage=Image::FromFile(L"myimage.tiff"); //for drawing on pDC... CRect rect; GetClientRect(&rect); Graphics *pGraphics=Graphics::FromHDC(pDC->GetSafeHdc()); UINT width = m_pImage->GetWidth(); UINT height= m_pImage->GetHeight(); Rect destinationRect(0, 0, rect.Width(), rect.Height()); // Scale the image so that it fills the destination rectangle. pGraphics->DrawImage(m_pImage,destinationRect, 0, 0, width, height, UnitPixel); yiy

    C / C++ / MFC help c++ question learning

  • Need Compiler crack
    B Babayan Hovhannes

    Can anybody send me Intel Compiler 7.1 "*.lic" file or crack. Thanks beforehand. yiy

    C / C++ / MFC
  • Login

  • Don't have an account? Register

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