|
Can you modify your post - check the "Ignore HTML tags in this message" box so we can see all
your code
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I am using VS 2005 on Vista and creating a proress bar. The progress bar in the editor has a glassy, fancy look to it, but during runtime, I end up seeing the regular old flat Progress bar.
Is this just in Vista? It bothers me how I am tricked by that. It is not WYSIWYG.
I am porting a large Borland C++ application to MFC and C# and am trying to make cleaner and fancier UI where possible. Perhaps I may end up using .NET to get the nicer look for this dialog.
|
|
|
|
|
Please give me some idea.
how to write the code for communicate with soundcard
|
|
|
|
|
To do what?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
http://www.zeitnitz.de/Christian/Scope/Scope_en.html
that link implement oscilloscope from soundcard using Labview.
I think it also work in c++.
|
|
|
|
|
So you need to read 16 bit samples at 44.1kHz? I'm not sure what the article's author used but
two ways I know to read data from the soundcard are:
Windows Multimedia Waveform Audio[^]
DirectX - DirectSound[^]
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hi
I will be having an application that has two plugins and loads the dlls from different target paths.However Plugin 1 has vc++ 7.0 code base and for plugin 2 the existing code base will be migrated to visual studio 2005 and additional functionality will be added and development to be continued on the migrated code base .Can different versions of msvcrt70.dll and msvcrt80.dll and similar visual studio dlls exist in the two different target paths. Can the application load these dlls simultaneously(the version of dll from vc7 and other from vc8) or would there be conflicts arising from this design?
Thankyou!
|
|
|
|
|
The different DLL versions can exist in the same place but you can't use them both at the same
time in an application.
If the plugins are completely independent of the application then it would probably work fine.
You'd have a problem passing MFC objects between the app and a plugin using a different MFC
version though.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I want Intelliconnect to render mov files and i have a filter for it :
I found the correct registry address finally and added key ".mov" but i am
confused about GUIDs.
I have one binary file , qtime.ax and it is registered to system.
When i browse it in graphedit , there are two filter seen from this single
file
1. Nero quicktime Audio Decoder
@devicew:{083863F1-70DE-11D0-BD40-00A0C911CE86}\{D6D8A64E-F9F7-4685-9757-7338077234D8}
2. Nero quicktime Video Decoder
@devicew:{083863F1-70DE-11D0-BD40-00A0C911CE86}\{470157A6-BFEA-4DF8-A8A7-12CE5EF33AE7}
So how will i do it , i did it like this but it didnt work , please help me.
Name Type Data
Media Type REG_SZ
{083863F1-70DE-11D0-BD40-00A0C911CE86}
Source Filter REG_SZ
{470157A6-BFEA-4DF8-A8A7-12CE5EF33AE7}
Subtype REG_SZ
{D6D8A64E-F9F7-4685-9757-7338077234D8}
BEST REGARDS
|
|
|
|
|
I have some extern/global variables and want to localize them to different class which are using them.
In other words I want to move them to different classes, utilizing their functionalities.
Note: These variables are shared by all the classes.
Please suggest me a way of doing it.
Thanks in Advance
S.S
|
|
|
|
|
I would start with something like
<br />
<br />
class CMyOldGlobals<br />
{<br />
public:<br />
static int AnExampleGlobal;<br />
};<br />
<br />
<br />
int CMyOldGlobals::AnExampleGlobal = DEFAULT_VALUE;<br />
remove the previous extern int AnExampleGlobal and definition of AnExampleGlobal.
#include shared.h wherever you need it and then a run through the compiler will list you all the places where AnExampleGlobal is used as being errors. You'll need to go through each one and change it to
<br />
CMyOldGlobals::AnExampleGlobal;<br />
This will remove all the old externs and global variables but it wont change the semantics of the code at all, the variables are still shared. If you then want to manage the sharing of this data between classes you'll need to do some data hiding and if multi threading is involved they'll all need sychronised access protection.
I hope this helps as a place to start anyway
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Hello all,
I want to read excel file from my code. i tried to find out articles but every article used sql command.Can anybody please help me to read it without using sql code.
thanks in advance
|
|
|
|
|
There's really 3 ways I can think of unless you want to reverse engineer the Excel file format.
1.Embed an Excel sheet as an ActiveX control within your app (doesn't have to be visible) and then access the data in it using the Excel object model and COM. This way Excel still gets to read the file and you don't have to.
2.Export the excel file to a .csv file which is really easy to read, just data and commas, and read that.
3.Use ADO or some similar technology to hide all the SQL stuff from you so it's used but you don't have to worry about it.
I'd go for option 2, unless I wanted to write data back it which case I'd probably be rethinking my design.
The Excel ODBC,OLE/DB drivers are notoriously bad anyway. They can't handle spaces in column names and have 3 different types of 0, numeric 0, empty cell 0 and null string 0, which they seem to mix randomly.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
hi,
Can you please tell me the 2nd procedure... how to use it??? give me the idea to export excel file to .csv file....or give me a piece of code of exporting it....
thanks in advance
....
|
|
|
|
|
You can save any Excel spreadsheet as a Comma Separated Value file just by going to the File menu, Choose Save As and select the CSV file type from the drop down list at the bottom of the SaveAs Dialog. I would recommed using the built in macro recorder to record an Excel Macro while you're doing this and that will give you most of the code you need if you want to automate it.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
In addition to Matthew's three suggestions, there's also Excel Automation. Excel exposes a COM interface that can be used quite handily.
"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
|
|
|
|
|
Dear all
I would like to introduce myself first, Omar Ali, MSc student in the research stage, college of Engineering, Baghdad University, Iraq.I am making research on (Active Networking System- Security of Active Networks).I found out throughout my research that I need FTP client under windows to help me accomplishing my research.
I request your kind assistance to help providing me with answer to the following question about "TJFTP" software.
"After a successful compilation under MS VC++6 compiler, the linker is failed in linking the source code files. The linking result is shown below:
Output Window
Compiling resources...
Compiling...
tjftpdoc.cpp
csock.cpp
ftpconnect.cpp
mainfrm.cpp
f:\c projects\tjftp_src\mainfrm.cpp(122) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
f:\c projects\tjftp_src\mainfrm.cpp(123) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
stdafx.cpp
tjftp.cpp
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/TJFTPtest.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
Results
TJFTPtest.exe - 4 error(s), 2 warning(s)
What is the problem please? I need correct building of the TJFTP code. I would like to make some modifications to the original TJFTP software (security, for example). I will, surely, refer to the original TJFTP author and site in references of my thesis. "
Knowing that I have been visited your site and find it related (in some cases) to my research.
Your kind assistance in providing me with answers to this question will help me allot to tackle and overcome the problems I am facing in my research.
I highly appreciate your kind assistance. With best regards.
MSc student
O. Ali
Iraq
|
|
|
|
|
Did the demo project and/or source that you downloaded include a project file or solution file?
If so, are you using those?
Make sure the project settings are set to build a multithreaded application.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Did you set /MT for your program?
|
|
|
|
|
Hello
I am writing below code for reading file from disk, But again agian
i am getted failed.
CString str;
CString strLine = "";
CString buffer = "";
CFileDialog Obj(TRUE);
if(Obj.DoModal() ==IDC_BUTTON3)
{
m_Upload = Obj.GetFileName();
}
str.Empty();
str = Obj.GetPathName();
SetDlgItemText(IDC_EDIT1,str);
CStdioFile fileObj;
fileObj.Open("str", CFile::modeRead | CFile::shareDenyWrite);
while(fileObj.ReadString(strLine))
{
fileObj.ReadString(strLine);
buffer += strLine + "\r\n";
}
fileObj.Close();
MessageBox(buffer);
can any one in this community soly this problem .
Regard's
Kaushik
|
|
|
|
|
fileObj.Open("str", CFile::modeRead | CFile::shareDenyWrite);
remove these double quotation mark from str n then try it
fileObj.Open(str, CFile::modeRead | CFile::shareDenyWrite);
|
|
|
|
|
Thanks you so much Sir.
Again thank you. ( it was realy silly mistake by me)
Can you told me how we copy this file to another folder.
Actually i am writing a program in which user can browse .doc and .txt file from Harddisk and save it in database.
Now : i am doing to save .doc or .txt file in a folder on local PC and its name save in database.
I can save its name in database . I am unable to save file in to folder
if you can plz help me
Regard's
Kaushik
|
|
|
|
|
if you want to make a copy of this file in another folder
you have to create a new file using open function and passing the name in 1st parameter then passing second parameter as CFile::modeCreate....
then you read content of already created file an write in this newly created file ......
and your database point is not clear to me...
|
|
|
|
|
suppose new file name is temp. and i want to copy it to UserFile (UserFile is the name of folder located in c:\UserFolder ) then if we write code
for copy file in to folder how we assign the path of folder to file
fileObj.Open(temp,CFile::modeCreate);
its not clear how new file read data from old one and how we assing path its for saving temp to folder.
Regard's
Kaushik
|
|
|
|
|
you can't copy file in a folder but you can create a new file in the folder and then write contents to that file.
For creating new file in the folder u have code
CStdioFile file_ptr;
file_ptr.open("c:\\UserFolder\\UserFile\\temp.txt",CFile::modeCreate|mode::ReadWrite,NULL);
this will create a file in the specified folder with name temp.txt
now if you want to write the content into it open the previous file that contains content.Read the content a write it simultaneously....
|
|
|
|