Member Avatar

How can I initialise a Datetime^ variable with current Date? I have this idea but I'm not sure: [ICODE] Datetime^ curDate = gcnew DateTime::Now; [/ICODE] Anyone?

Member Avatar
0
4
Member Avatar

Hello, can anyone help me to finish this code? [CODE] ref class data_XML{ private: int service_code; wchar_t* name; wchar_t* address; wchar_t* phone; wchar_t* fax; wchar_t* web_page; wchar_t* city; wchar_t* additional_info; wchar_t* specialty; wchar_t* sub_specialty; data_XML^ next_XML; public: // Constructor data_XML(void){}; void next(data_XML^ next){ this->next_XML= next; } virtual String^ ToString() override{ String^ pointer = gcnew String(nombre); return pointer; } }; [/CODE] Basically what I need is to finish te constructor because i'm not sure if i need to do something like [ICODE]gcnew data_XML();[/ICODE] when i call it. In my main function i have [CODE] data_XML myFirstXML; data_XML^ myNextXML; myFirstXML.next(myNextXML); [/CODE] I …

0
1
Member Avatar

I built a Visual Studio 2008 VC++ project, dialog based using HTML. In my HTML I have: [CODE] <form name="loadExcel"> Choose the file which contains the information:<br /> <input type="file" name="myFile" value="Search" id="myFileInput" /><br /> <input type="button" class="Upload" name="loadExcel" title="Import" id="loadExcelButton" /> </form> [/CODE] The user is supposed to browse to a valid Excel file which I will work using the excellent [B]ExcelFormat library by Martin Fuchs[/B] to produce a XML output. So, I try to capture the path to the file or at least something using the button loadExcel that will trigger a function: [CODE] BEGIN_DHTML_EVENT_MAP(CGeneraliDMDlg) DHTML_EVENT_ONCLICK(_T("ButtonOK"), OnButtonOK) DHTML_EVENT_ONCLICK(_T("ButtonCancel"), …

Member Avatar
0
2
Member Avatar

I'm making a project in Visual studio 2008. The details of the project are: - It is a MFC Application - The application type is Dialog based with Use HTML Dialog enabled - The project style is MFC standard and... - The use of the MFC is in a shared DLL When it creates the project, I have an HTML file called myApp.htm which contains the HTML code of the dialog. I want to apply an external css file to this HTML, so i add: <link rel="stylesheet" src="myApp.css" type="text/css"/> in the head of the document. But it doesn't work. So …

Member Avatar
0
3
Member Avatar

I have an Excel file with M columns (A, B, ..., M) that i need to open to extract it's contents using a visual c++ program. Does anyone know how to do it? The last row of the file is line 423 (first row contains the headers of each column). Any help would be appreciated!

Member Avatar
-1
4
Member Avatar

Hello, I wanted to ask about a new small program that ihave to do. I am supposed to take some information from an excel (the structure of this excel is fixed) and save it as an XML. I am still deciding if I should do it with Visual C++ (which I know a little, but don't know how to interact with Excel) or Visual Basic (which I would have to read a book, but I read that it has communication with Excel already). I appreciate any suggestions and guidance

0
1
Member Avatar

For those who want to learn about windows, I leave the code I was looking for... "Programatically filling a ComboBox and setting it visible or invisible" [code] HWND hWndComboBox[10]; char numChar[20]; // String that contains a number converted to string int yPos = 160, xPos = 60; int counter1, counter2; // switch(Msg){ case WM_INITDIALOG: for(counter1 = 0; counter1 < MAX_COMBOS; counter1++){ hWndComboBox[counter1] = CreateWindow("COMBOBOX", NULL, WS_CHILD | [B]WS_VISIBLE[/B] | WS_TABSTOP | CBS_DROPDOWN | WS_VSCROLL, xPos, yPos, 60, 60, hWndDlg, NULL, hInst, NULL); if(!hWndComboBox){ MessageBox(hWndDlg, "Could not create the combo box", "Failed Control Creation", MB_OK); return FALSE; } // I'll fill …

Member Avatar
0
2
Member Avatar

I have this dialog box: [code] IDD_GRUPO_NOMBRAR DIALOGEX 447, 19, 226, 263 STYLE DS_SETFONT | DS_SETFOREGROUND | WS_POPUP | WS_CAPTION EXSTYLE WS_EX_CONTEXTHELP | WS_EX_CONTROLPARENT CAPTION "Nombrar grupos" FONT 8, "Tahoma", 400, 0, 0x0 BEGIN CTEXT "Por favor numere los grupos",IDC_STATIC,65,8,92,8 GROUPBOX "Los grupos iguales deben tener el mismo nombre",IDC_STATIC,16,24,189,212,BS_CENTER | BS_FLAT,WS_EX_TRANSPARENT EDITTEXT IDC_NOMBRAR1,20,38,84,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP,WS_EX_TRANSPARENT EDITTEXT IDC_NOMBRAR2,20,57,84,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP,WS_EX_TRANSPARENT EDITTEXT IDC_NOMBRAR3,20,76,84,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP,WS_EX_TRANSPARENT EDITTEXT IDC_NOMBRAR4,20,95,84,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP,WS_EX_TRANSPARENT EDITTEXT IDC_NOMBRAR5,20,114,84,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | NOT …

Member Avatar
0
5
Member Avatar

Hi all, finally the first part of my program is working, it plays a MIDI melody extracted from a database. How did I do it? A little MySQL++ and the Play midi voice article posted in the code snippets. But now I'm facing a problem... I am supposed to play the melody using the instrument 24 which is a Nylon string guitar, and it is supposed to have clean sounds, but they all come cut whenever I play them. The partiture has figures lenght of 1/3 of black figure... about 167 miliseconds between notes, but everytime a note is going …

0
1
Member Avatar

I need to find a way to convert char[] to TCHAR[] I did my best to find it, but all I could find was char[] to wchar_t[] using... int swprintf( wchar_t *buffer, const wchar_t *format [, argument] ... ); Help please!

Member Avatar
0
4
Member Avatar

I have been member since few weeks ago, but I didn't introduce myself to the comunity. So here I am, my name is Andres, I am from Colombia and I have a lot of questions about C++ I am a web developer, with some knowledge in HTML, PHP, MySQL and ActionScript. Right now I work with a partner who doesn't speak any english, but he is a cool guy. Anything I can do, related to those 4 web languages I will be glad to help. So, again... I will be happy if You can help me out with my C++ …

Member Avatar
0
3
Member Avatar

Can someone help me with this? class Note{ private: [INDENT]double Freq; int milisec; [/INDENT]public: [INDENT]Note(); Note(double Fr, int ms){ [INDENT]Freq = Fr; milisec = ms; [/INDENT]}; ~Note(); [/INDENT]}; Ok... now I declare something like this: Note mynotes[MAX_NOTES]; is there a way to find out the array size? Thanks

Member Avatar
0
5
Member Avatar

I want to make a query in C++ using the MySQL++ API. Here is my problem, in PHP for example I make something like this: $query = "SELECT * FROM table1 WHERE id = " . $value; In C++ I can't do that. I need a way to make $value be part of the query string. I know it is a silly question, but can someone help me find this answer? Thank You

Member Avatar
0
2
Member Avatar

I have a little annoying problem and I really need help. I need to convert a char* to TCHAR* and I can't... I have tried everything and nothing seems to help... TCHAR text1[ ] = ""; char *key; key[0] = 'a'; key[1] = '\0'; text1 = _T(key); //Does not work can anyone help me here? I'm stuck

Member Avatar
0
6
Member Avatar

Can someone start a tutorial about MySQL++ combined with Win32? I would like to learn about that

Member Avatar
0
2
Member Avatar

I need to create a Windows program which is meant for music students. The main frame needs to contain in the upper part a "word style" page with a partiture displayed, and the toolbar with the controls has to be in the lower part of the window. The idea is that the student will not be able to change the partiture notes, but he needs to work over the partiture using the mouse to identify several aspects of the partiture. My question is very simple... what kind of View should I use for the main view of the mainframe? I …

0
1
Member Avatar

[I]I need to do something like Play MIDI voice (in the C++ code Snippets page 5), actually, that's exactly what I need, but I would like to make it work in Visual C++ 2005... can someone help me with the configuration steps to make the project work? TYVM [/I]

Member Avatar
0
5

The End.