|
Hi.
I have manage to plot sin(x) by calling gnuplot but the display of the graph is only for a split second. How do I make the graph show longer or continue displaying until the 'x' button (exit) is clicked?
The following are my codes:
<br />
pid = _popen("wgnuplot.exe", "w");<br />
cfile = fopen("cSinx.txt", "r");<br />
if ((pid > 0) && (cfile > 0))<br />
{<br />
printf("Open file suceeded!\n");<br />
system("wgnuplot.exe cSinx.txt");<br />
_pclose(pid);<br />
}<br />
cSinx.txt is a file where I put the command
|
|
|
|
|
how can i link libws2_32.a to my project
tamer
|
|
|
|
|
*.a file are linux libraries or libraries for MinGW (as far as I know, but my knowledge there is a little bit limited). Which compiler are you using ? If you use one of the Visual studio IDE, you need to link to ws2_32.lib instead.
|
|
|
|
|
after complete a project,I am not careful to delete the Combo Box.
I place a new Combo Box before and modify the ID property which is same to
the deleted.
But after modified ,the Combo Box did not display the item.
(the project run on .NET)
|
|
|
|
|
Your question is on the c++ or .Net
|
|
|
|
|
wangy275 wrote: But after modified ,the Combo Box did not display the item.
Double-check the .h file that contains the control IDs. In the dialog class that owns the combobox, what does the message map look like? How are you adding items to the combobox?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
#define IDC_COMBOBOXEX2 1006
Is your mean to modify the number 1006?
but where 1006 is used?
as you said ,how to modify the number of IDC_COMBOBOXEX2?
At last Thank you for the reply.
|
|
|
|
|
wangy275 wrote: but where 1006 is used?
It shouldn't be used anywhere. That's why IDC_COMBOBOXEX2 is defined.
wangy275 wrote: as you said ,how to modify the number of IDC_COMBOBOXEX2?
It most cases, you don't need to (unless there are duplicate IDs for the same dialog).
How are you adding items to the control?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I'm just confused. I am trying to implement video playback in a 2D-World using D3D. The best would be to have the video on a D3D-surface, so i chose VMR9 in renderless mode to do the dirty work :/. But i have come to a point where i'm just running against a wall: Although i'm doing quite the same as in the VMR9-Renderless sample, the program crashs while calling RenderFile(). Has anyone a working solution, which he could share?
|
|
|
|
|
Firedragonweb wrote: Although i'm doing quite the same as in the VMR9-Renderless sample, the program crashs while calling RenderFile().
Crashes where? How?
The VMR9 already draws by default to a Direct3D surface.
The IVMRSurfaceAllocatorNotify9 should help. See Supplying a Custom Allocator-Presenter for VMR-9[^]
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hi all,
Environment:
Windows Vista, Visual Studio 2005.
I have developed an application, which is related to file operations. In Standard User (Vista) - [In Program Files], if i programmatically Create/Delete/Move files or folders it's giving Access Denied error.
But if i do same operation manually, it asks for Administrative password. If we provide it, it will Create/Delete/Move files or folders.
Can i do this programmatically? (i.e providing Administrative password).
Thanks in advance.
|
|
|
|
|
Please refer here[^] for more information.
Regards,
Paresh.
|
|
|
|
|
The document has nothing related to my problem..
|
|
|
|
|
Shell32.dll wrote: Can i do this programmatically?
Yes, assuming you have permission. Check out Vista's UAC.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi, can anyone guide me how to display a table(in .mdb file) in the form of list control
thanks
|
|
|
|
|
|
thanks,it really helps.
then can guide me if i want to copy selected records in the list control into another table(in .mdb file) with the column ~field
|
|
|
|
|
See this[^] thread is helpfuls
|
|
|
|
|
hey, how can change these code in CDaoDatabase... thanks
void CReadDBDlg::OnRead()
{
// TODO: Add your control notification handler code here
CDatabase database;
CString SqlString;
CString sCatID, sCategory;
CString sDriver = "MICROSOFT ACCESS DRIVER (*.mdb)";
CString sDsn;
CString sFile = "C:\\Documents and Settings\\common.MIT-SGP\\Desktop\\new\\ReadDB\\Test.mdb";
// You must change above path if it's different
int iRec = 0;
// Build ODBC connection string
sDsn.Format("ODBC;DRIVER={%s};DSN='';DBQ=%s",sDriver,sFile);
TRY
{
// Open the database
database.Open(NULL,false,false,sDsn);
// Allocate the recordset
CRecordset recset( &database );
// Build the SQL statement
SqlString = "SELECT CatID, Category "
"FROM Categories";
// Execute the query
recset.Open(CRecordset::forwardOnly,SqlString,CRecordset::readOnly);
// Reset List control if there is any data
ResetListControl();
// populate Grids
ListView_SetExtendedListViewStyle(m_ListControl,LVS_EX_GRIDLINES);
// Column width and heading
m_ListControl.InsertColumn(0,"Category Id",LVCFMT_LEFT,-1,0);
m_ListControl.InsertColumn(1,"Category",LVCFMT_LEFT,-1,1);
m_ListControl.SetColumnWidth(0, 120);
m_ListControl.SetColumnWidth(1, 200);
// Loop through each record
while( !recset.IsEOF() )
{
// Copy each column into a variable
recset.GetFieldValue("CatID",sCatID);
recset.GetFieldValue("Category",sCategory);
// Insert values into the list control
iRec = m_ListControl.InsertItem(0,sCatID,0);
m_ListControl.SetItemText(0,1,sCategory);
// goto next record
recset.MoveNext();
}
// Close the database
database.Close();
}
CATCH(CDBException, e)
{
// If a database exception occured, show error msg
AfxMessageBox("Database error: "+e->m_strError);
}
END_CATCH;
}
|
|
|
|
|
Before the while loop, initialize x to 0 .
hero1995 wrote: iRec = m_ListControl.InsertItem(0,sCatID,0);
iRec = m_ListControl.InsertItem(x++, sCatID, 0);
hero1995 wrote: m_ListControl.SetItemText(0,1,sCategory);
m_ListControl.SetItemText(iRec, 1, sCategory);
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
See if this is of any help.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I am using the IXMLHTTPRequest object to send xml over HTTPS and I need to tell it to use a PKCS#12 certificate held on the C:\ drive. Would someone advise how to associate a PKCS#12 certificate to a IXMLHTTPRequest object.
|
|
|
|
|
I have one VC++ application this application runs perfectly in the release MOde but when tried to compile in Debug mode it gives the following linker error .
Can somebody helps me in finding the solution for this problem ...
Linking...
Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
gcl52fwD.lib vfw32.lib Psapi.Lib libtiff.lib ippi20.lib ippcv20.lib libjpeg.lib ippj20.lib ipla6l.lib pcMotionMS.lib FlexMS32.lib Wsock32.lib ijl15.lib multicam.lib version.lib libguide.lib " /nologo /subsystem:windows /incremental:no /pdb:Debug/Ser
verD.pdb /map:Debug/ServerD.map /debug /machine:I386 /nodefaultlib:libc.lib /nodefaultlib:libcmt.lib /out:Bin\ServerD.exe /libpath:3RDPARTY\MKL\ia32\lib /libpath:3rdParty\MultiCam\Lib /libpath:3rdParty\ValueMotion\lib\Microsoft /libpath:3RDPARTY\IPP
\stublib /libpath:3RDPARTY\IPP\libtiff\lib /libpath:3RDPARTY\IPP\IJG\LIB /libpath:3rdParty\FlexMotion\lib\Microsoft /libpath:3rdParty\plsuite\lib /libpath:3rdParty\commlib\v6x\v6m /libpath:\Program"
LINK : error : Internal error during SetupPhase
ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 2E6D6172
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 2E6D6172
CONTEXT:
Eax = 004A2490 Esp = 0012FA6C
Ebx = 77C5FCE0 Ebp = 00004000
Ecx = 0012FA68 Esi = 0032ACD6
Edx = 00320600 Edi = 0032AECF
Eip = 2E6D6172 EFlags = 00010216
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 0000003B SegGs = 00000000
Dr0 = 0012FA6C Dr3 = 77C5FCE0
Dr1 = 00004000 Dr6 = 0012FA68
Dr2 = 00000000 Dr7 = 00000000
Error executing link.exe.
Tool execution canceled by user.
Thanks in advance
Anamika
If u not found any problem that means you are on the wrong way ..
|
|
|
|
|
hi, can anyone correct these code for me.Thanks
int nSelected = m_myList.GetSelectionMark();
CString strText = m_myList.GetItemText(nSelected, 0);
db.Execute("INSERT INTO Table3 IN 'D:\\copyktt.mdb' SELECT * FROM MyTable6 WHERE Field = strText ");
|
|
|
|
|