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
D

dodoxor

@dodoxor
About
Posts
30
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MSDTC - TransactionManagerCommunicationException
    D dodoxor

    I've resolved. The client open a comunication with the server. Then close the comunication and wait. The server open a new comunication(with a dinamic port number) with the client and try to send information. So if on the client there's a firewall that block msdtc.exe process the comunication failed. So to resolve create a specific rule for the msdtc.exe process on client. Bye.

    C# help database sysadmin

  • MSDTC - TransactionManagerCommunicationException
    D dodoxor

    Hello, i've implemented an application that read from a local db and write on a server db using a transaction scope. When I try to commit the transaction i receive an exception error : System.Transactions.TransactionManagerCommunicationException: Impossible to comunicate with transaction manager...System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL ... in System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32 propgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier, Guid& transactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionShim& transactionShim) in System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken) I've enabled MSDTC on client and server but something is wrong. Please help if you know the solution. Thanks in advance

    C# help database sysadmin

  • Exe File
    D dodoxor

    Thanks for answer but i've another answer. - The DLLs in the bin folder of the c++ in the visual studio's folder? - How can i search on internet some info about this argument? Thanks a lot Bye.

    Windows Forms c++ debugging question

  • Exe File
    D dodoxor

    I made my windows form application with some dependencies with a set of libraries (OPENCV); after building my project i 've an exe file file in the debug directory, working. I want to use my application on other pc, that don't have vc++ and opencv, can i use only the exe file to use my application? Thanks for answers, regards.

    Windows Forms c++ debugging question

  • Button click event
    D dodoxor

    1- For the first problem i don't find a solution so i change my code. 2- For the second problem i declare a flag variable that change its value then the button is clicked. Bye.

    Windows Forms question c++

  • Button control
    D dodoxor

    Thanks a lot is working. I 've also tried to put ToolTip toolTip = new ToolTip(); toolTip.ShowAlways = true; toolTip.SetToolTip(startButton, "Whatever Message..."); in the Form_load event and is work too. Thanks, bye.

    Windows Forms question c++

  • Button control
    D dodoxor

    Hi, thanks for answer. I'know there's the event onmousehover but i think what i want is different. when you are on a button,(like start button of windows xp) a yellow rectangle with a help description is shown. How can i do this? Thanks , regards

    Windows Forms question c++

  • Button control
    D dodoxor

    Hello to everyone. I've a window form application in c++ and i've a button in it. How can i add the properties that when the mouse is over the control a description of the control is shown? Thanks for answers regards.

    Windows Forms question c++

  • FolderBorserDialog for images
    D dodoxor

    I've a solution...(take the directory name and gets the files in it). String^ folderName; array ^ files; System::Windows::Forms::DialogResult result = folderBrowserDialog1->ShowDialog(); if ( result == ::DialogResult::OK ) { folderName = folderBrowserDialog1->SelectedPath; } files=System::IO::Directory::GetFiles(folderName); if(files->Length!=0) for(int i=0;iLength;i++) { FileInfo^ fi = gcnew FileInfo(files[i]); if(fi->Extension==".jpeg" || fi->Extension==".bmp"||fi->Extension==".jpg") { Bitmap^ cap=gcnew Bitmap(fi->FullName); this->capture_img_box->Image=cap; System::Threading::Thread::Sleep(1000); this->Refresh(); Application::DoEvents(); } } Thanks however for the answers. Bye.

    Windows Forms c++ question

  • FolderBorserDialog for images
    D dodoxor

    Hi to everyone.In my visual c++ window form appplication, i want to open a directory (of images) and see the images in a picturebox. I know that i can use folderborwserdialog to select the directory but when i've the path selected in the folderbrowserdialog how can i use the files in it? Have i to pass something to an imagelist?? Thanks for answers, bye .

    Windows Forms c++ question

  • Textbox
    D dodoxor

    Hi to everyone, i want to use a textbox and write in some debug message during the execution of my program. My problem is when i use this->textbox->AppendText("text to append") i don't known how go to next line. With old printf for c-like syntax i use "\n" but in my case if i use it, it goes to the next line but i see a little square at the end of the line. Another thing...what is when i declare a string the letter L at the begin? String^ v=L"Succeeded.."; Thanks for answers,regards.

    Windows Forms question debugging help

  • While loop
    D dodoxor

    Thank yuo very much. I try and works. this is msdn for c++ Application.DoEvents Method Processes all Windows messages currently in the message queue. Namespace: System.Windows.Forms Assembly: System.Windows.Forms (in system.windows.forms.dll) SyntaxSyntax C++ public: static void DoEvents ()

    Windows Forms c++ performance help tutorial question

  • While loop
    D dodoxor

    Hi to everyone, i've a window form project in visual c++. I want to put a while loop in a button click method(to see in a picture box some images taken from a memory buffer and every loop i refresh the picturebox) but this is the problem when i execute the project: when i click on the button and enter the loop i can't do anything with the other controls of the form. Any suggestions how to resolve my problem? Thanks for answers in advance, regards.

    Windows Forms c++ performance help tutorial question

  • Bmp
    D dodoxor

    Thanks for answers,it's very useful. There's a prolem when i try to compile: HBITMAP hBitmap = ::CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, &bitmap_buf, NULL, 0); generate error C2664: 'CreateDIBSection' : cannot convert parameter 4 from 'BYTE **' to 'void **' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast so i try to do a safe cast, i add this line before the CreateDIBSection void* buff=safe_cast(bitmap_buf); and use &buff instead of bitmap_buf in CreateDIBSection but the result is a list of build error: error LNK2028: unresolved token (0A0002FA) "extern "C" int __stdcall ReleaseDC(struct HWND__ *,struct HDC__ *)" (?ReleaseDC@@$$J18YGHPAUHWND__@@PAUHDC__@@@Z) referenced in function "private: void __clrcall WinCam::Form1::capimgbut_Click(class System::Object ^,class System::EventArgs ^)" (?capimgbut_Click@Form1@WinCam@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) WinCam.obj : error LNK2028: unresolved token (0A0002FB) "extern "C" struct HBITMAP__ * __stdcall CreateDIBSection(struct HDC__ *,struct tagBITMAPINFO const *,unsigned int,void * *,void *,unsigned long)" (?CreateDIBSection@@$$J224YGPAUHBITMAP__@@PAUHDC__@@PBUtagBITMAPINFO@@IPAPAXPAXK@Z) referenced in function "private: void __clrcall WinCam::Form1::capimgbut_Click(class System::Object ^,class System::EventArgs ^)" (?capimgbut_Click@Form1@WinCam@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) ...and so on. I don't know why... Thanks however for help. Regards.

    C / C++ / MFC c++ graphics question

  • Cimage to bmp
    D dodoxor

    I've another ref class where i declare in a method{ func() { .... CImage jpgframe; jpgframe.CreateImage(bufferjpg,mycam->jpg->len,1); jpgframe.Decode(bufferjpg,mycam->jpg->len); ... } and i want to use jpgframe to create a Bitmap^ bmp but i dont't know how. Can you help me? Thank a lot, regards.

    C / C++ / MFC question graphics

  • Button click
    D dodoxor

    Thank you...it's working.

    Windows Forms question

  • Cimage to bmp
    D dodoxor

    I've this class class CImageBase : public CImagePan { public: CImageBase(); virtual ~CImageBase(); virtual BOOL Decode(char *pcMemBuff, long lFileLength) PUREVIRTUAL; // Implementation of pure virtual functions in CImagePan class virtual int GetEffWidth() const { return EffWidth; }; virtual int GetWidth( void ) const { return Width; }; virtual int GetHeight( void ) const { return Height; }; virtual int GetDepth( void ) const { return Depth; }; virtual int GetColorType( void ) const { return ColorType; }; virtual BOOL Inside(int x, int y) const { return (0<=y && ybiSize + lpbi->biSizeImage); } virtual LPBITMAPINFOHEADER GetBitmapInfoHeader() { return lpbi; } virtual void BGR2RGB(unsigned char* pBuffer,int iCount); protected: ImagePointerType RawImage; // Image data void AllocateImage(); int Width, Height; // Dimensions int Depth; // (bits x pixel) int ColorType; // Bit 1 = Palette used // Bit 2 = Color used // Bit 3 = Alpha used int RawImageSize; long EffWidth; // Effective Width LPBITMAPINFOHEADER lpbi; int bgindex; friend class CImageIterator; }; How can i transform a Cimage object in a Bitmap^ bmp ? Thanks, regards

    C / C++ / MFC question graphics

  • Button click
    D dodoxor

    Hi to everyone. I 've a ref class. In a method of the class i want to stop a while loop when a button is clicked. How can i write this condition? thanks in advance for answers, regards.

    Windows Forms question

  • Bmp
    D dodoxor

    Thanks Mark, i see form msdn the definition of hBitmap = CreateDIBitmap(hDC, lpInfo, CBM_INIT, lpBits, lpInfo,wUsage); but i can't associate my variable to that are required in the function. For example hdc(where is in my code??), lpinfo( InfoBitmapHdr.biWidth),CBM_INIT,lpbits(??),lpinfo(InfoBitmapHdr.biHeight),wUsage(??) Thanks for answers, regards.

    C / C++ / MFC c++ graphics question

  • Bmp
    D dodoxor

    Hi to everyone, i have this code that tansform an IlpImage* in a bmp format.. char* bitmap_buf; IplImage* image; BITMAPINFOHEADER InfoBitmapHdr; BITMAPFILEHEADER BitmapHdr; image=cvLoadImage("nome_file.ext",1); memset(&InfoBitmapHdr, 0, sizeof(BITMAPINFOHEADER)); memset(&BitmapHdr, 0, sizeof(BITMAPFILEHEADER)); InfoBitmapHdr.biWidth = image->width; InfoBitmapHdr.biHeight = image->height; InfoBitmapHdr.biSize = sizeof(BITMAPINFOHEADER); InfoBitmapHdr.biPlanes = 1; InfoBitmapHdr.biBitCount = 24; InfoBitmapHdr.biSizeImage = image->imageSize; BitmapHdr.bfType = 0x4d42; BitmapHdr.bfSize = (DWORD) image->imageSize + sizeof(BITMAPFILEHEADER); BitmapHdr.bfOffBits = (DWORD) sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER) + InfoBitmapHdr.biClrUsed * sizeof (RGBQUAD); bitmap_buf= new char[image->imageSize]; memcpy( bitmap_buf, (char*)&BitmapHdr, sizeof(BITMAPFILEHEADER)); memcpy( bitmap_buf + sizeof(BITMAPFILEHEADER), (char*)&InfoBitmapHdr, sizeof(BITMAPINFOHEADER)); memcpy( bitmap_buf + sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER), (char*)image->imageData, image->imageSize - 60); Can you tell me which variable must i use to visualize the bmp in a picture box of a window form application in visual c++?? Thanks for answers, regards.

    C / C++ / MFC c++ graphics 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