- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 13
- Posts with Upvotes
- 13
- Upvoting Members
- 7
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Re: [code=c++] //... void __fastcall TForm1::example(void) { TestBtn = new TButton(); TestBtn->Visible = false; } [/code] | |
| |
Re: [code=vb] dim x as integer dim y as integer dim str as string private sub ON_BUTTON_CLICK(...sender as OBJECT,... e as MOUSE_EVENT_ARGS) x = e.X y = e.Y str = ListView1.GetItemAt(x, y).Text end sub [/code] | |
Re: That code is a dodge, don't u.. Assert : typically used to identify logic error by implementing the expression arg to evaluate to false only.. Ex. [code] char ch = 'a'; assert(ch != 'a') // assertion failure.. //expression is false.. [/code] | |
Re: It worked with me.. [code=vb] '... for each m_row as System.Windows.Forms.DataGridViewRow in me.DataGridView1.Rows if m_row.Cells("Column1").Value=true then me.DataGridView1.Rows.Remove(m_row) end if next '... [/code] | |
Re: go to [URL="http://www.daniweb.com/forums/forum61.html"]C# forum[/URL]..thank you.. | |
Re: [code=c++] Form2 ^form2 = gcnew Form2(); form2->Show(this); [/code] | |
Re: you've forgotten to include "resource.h".. use the resource editor to see the ID of the "About Dialog" .. If you can not find it..then create.. then see the following codes.. [code] // your code case IDD_ABOUT: { int ret = DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_ABOUT), hwnd, AboutDlgProc); [/code] [code] // my code..and it … | |
Re: Library: Use User32.lib, make sure link correctly.. | |
Re: More information please?.. | |
Re: Remove '#include "stack.cpp"' at stack.h file.. Add '#include "stack.h"' to your stack.cpp file.. | |
Re: Reset your var..Cleanup..Then call menu..It's hard to read your codes..esspecialy if it invinsible.. | |
Re: agree with bevoX..use iterative method instead of recursive method.. | |
| Re: [code=c++] window(10,10,77,77); // never use it [/code] |
Re: try this..;) [code=c++] VOID SetWallpaper(TCHAR *szFilename,INT nStyle) { CoInitializeEx(0,COINIT_APARTMENTTHREADED); IActiveDesktop* iADesktop; HRESULT status = CoCreateInstance(CLSID_ActiveDesktop,NULL,CLSCTX_INPROC_SERVER,IID_IActiveDesktop,(void**)&iADesktop); WALLPAPEROPT wOption; ZeroMemory(&wOption, sizeof(WALLPAPEROPT)); wOption.dwSize=sizeof(WALLPAPEROPT); switch(nStyle) { case 0: { wOption.dwStyle = WPSTYLE_STRETCH; }break; case 1: { wOption.dwStyle = WPSTYLE_TILE; }break; case 2: { wOption.dwStyle = WPSTYLE_CENTER; }break; default: wOption.dwStyle = WPSTYLE_STRETCH; } status = … | |
Re: can't find the ID for the HELP button..where is it?.. [code] case [B]ID_ABOUT[/B]: { int ret = DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE([B]ID_ABOUT[/B]), hwnd, AboutDlgProc); [/code] HINT : use a different command ID from the dialog ID..:) | |
Re: this might work.. [code] strcpy(str, "taskkill /f /im "); //adding a space character after an options.. strcat(str, task3); [/code] | |
Re: the easiest..don't need [icode]InitCommonControlsEx(&icex);[/icode] nor [icode]InitCommonControls();[/icode] [code] #pragma comment(linker,"/manifestdependency:\"type='win32 name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") [/code] i'm sorry..:) | |
Re: fill it with zeroes then.. [code] size_t buf_size = wcslen(testString); memset(testString,0,buf_size); testString = L"You joking?"; [/code] | |
Re: how about this.. [code] ifstream myfile(levelMapFile.c_str()); myfile.is_open(); [/code] | |
Re: simple..just declare it..you know how to do that..rite mates.. | |
Re: no errors!!..what should i do for you?.. [code]I don't just want to get a good grade, I want to understand what I'm doing[/code] alright..thats my girl.. | |
Re: Try [code=c++] // wcstombs(char *mbstr,const wchar_t *wcstr, size_t count) // ... CHAR *mbBuf= new CHAR[100]; TCHAR *wcBuf=_T("hello"); #ifdef _UNICODE wcstombs(mbBuf,wcBuf,100); #else strcpy(mbBuf,wcBuf); #endif ... delete[]mbBuf; ... [/code] wcstombs, strcpy are deprecated.. More secure versions are available.. Take care.. | |
Re: It worked with me.. [code=c++] #include <windows.h> #include <iostream> //maybe you should add this #pragma comment(lib,"kernel32.lib") #pragma comment(lib,"user32.lib") // this will puts a lib-search record in the object file using std::cin; int main() { HWND hWnd = GetConsoleWindow(); ShowWindow(hWnd,SW_MAXIMIZE); cin.get(); return 0; } [/code] | |
Re: Remove the '*'..Should be just 'pvFindPara'.. | |
Re: It's very simple..Just add this.. [code=c++] #include "Form2.h" // or whatever [/code] |