|
Hi Stuart,
Is there any chance to track the "menu" selected by user in Excel Menu Items. If we get this, then we can achieve tracking allignment of data?
Regards,
KTTransfer.
|
|
|
|
|
Hi,
I have a folder conatining lots of file and folder, I am to include all files and folder in my project.
How to instaruct the compiler to add file from "usr/include/abd" directory in visual studio 2008?
|
|
|
|
|
RTFM[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
Hi All,
I want to convert from one media stream to other.Like,convert from mjpeg to mpeg4.
FFMPEG tool is used for this purpose.
could u pls explain how to do programatically??
Thanx.
|
|
|
|
|
FFMPEG is open source.
Download and check the code.
|
|
|
|
|
Hi
I am trying to register several dlls using command promp
>regsvr32 "dll name"
but each time I have to change the path on the command prompt. Is there any way to register a dll without using command prompt (Just as we do in XP). I have used Microsoft Register Server as a default program to open a dll.
But still on Windows 7 some dlls are not getting registered but when I have tried to do the same on command prompt its succeeds.
Thanks
|
|
|
|
|
Why not write a .bat file?
or use
regsvr32 "(Complete path of dll with dll name)"
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
modified on Tuesday, May 11, 2010 5:10 AM
|
|
|
|
|
Even using Batch File it Fails..
I am registering dlls and type libraries in Post Build event. When I try to register the dlls or type libraries using command prompt is succeeds but it fails while using batch files. How to get out of this..??
|
|
|
|
|
Are you running the command prompt as an elevated user, and the batch file as a normal user?
|
|
|
|
|
hello Sirs
I have one project files which have Makefile.vc but it don't having the .sln / .dsw file. I can able to build the source file via visual studio command prompt using build commands. But i need to Create solution for this project what i can do ?
Please replay me
Thanks
Failure is Success If we learn from it!!
|
|
|
|
|
Assuming that you have a version of Visual Studio on your system, then create a new empty solution in the project's directory. Then add the project to the solution and it should be set to go.
It's time for a new signature.
|
|
|
|
|
Hi,
I was trying to compile the following code,
but it give the error that "tmpname cannot appear in constant expression"
I am using the g++ compiler
#include <iostream>
#include <vector>
#include <map>
#include <string>
class TidePhaseAmp
{
public:
float amp;
float phase;
};
main ()
{
std::map< std::string, std::vector<TidePhaseAmp> > extracted_tConst;
const char * tmpname = "2n2";
extracted_tConst.insert(std::pair<std::string, std::vector<TidePhaseAmp>>(tmpname, std::vector<TidePhaseAmp>(5)));
return(0);
}
the compile error messages are
test_map2.cpp: In function ‘int main()’:
test_map2.cpp:19: error: ‘tmpname’ cannot appear in a constant-expression
test_map2.cpp:19: error: a comma operator cannot appear in a constant-expression
test_map2.cpp:19: error: a call to a constructor cannot appear in a constant-expression
test_map2.cpp:19: error: ‘>>’ should be ‘> >’ within a nested template argument list
however the program does not gives any error when I compile it using visual studio 2008 express compiler
is the problem because I am using a constructor in the statement .i.e. std::vector<TidePhaseAmp>(5)
or is there any other workaround for the problem
Gourish
|
|
|
|
|
In this case the important error message is this one:
test_map2.cpp:19: error: ‘>>’ should be ‘> >’ within a nested template argument list
- insert a space between the two '>' symbols and it should compile.
|
|
|
|
|
Use std::make_pair and you don't need to explicitly state the template types, because function template instantiations will deduce the template parameters from the function parameter types:
extracted_tConst.insert(std::make_pair(tmpname, std::vector<TidePhaseAmp>(5)));
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
thanks for the proper suggestion, i implemented it and it worked.
|
|
|
|
|
I want insert checkbox in any coloum in the list view control,but I do not how to do.Using "SetExtendedStyle(LVS_EX_CHECKBOXES)" can only insert checkbox in the first coloum,please help me!
|
|
|
|
|
There are tons of articles about, here at CodeProject [^], for instance, Hans Dietrich's XListCtrl , looks promising.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
FILE *f_ptr22[50];
CString ftitle[50];
for (i=0;i<50;i++)
{
f_ptr22[i]=NULL;
}
for (i=0;i<nfile;i++)
{
f_ptr22[i] = fopen(ftitle[i],"r");
}
I got "debug Assertion failed at f_ptr22[i] = fopen(ftitle[i],"r");
Expression *file!=_T('\o')
Please help: what is the problem here. Code compiled OK.
Thanks
|
|
|
|
|
You never initialize ftitle .
BTW why do you try to open again and again the same file?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Both for() loops use i , why? What is the value of i when the assertion fires?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
You are right. there was errors I fixed them. Now it works.
|
|
|
|
|
Hi
I would like to tidy up the directories. So I like to my program to read input from a sub-directory and write output to a sub-directory. All these two sub-directories are under the directory where the .exe resides.
FILE *f_ptr1;
CString ftitle;
f_ptr22[i] = fopen("rs_sf"+ftitle,"w");
fprintf (f_ptr2, "%.6lf\n",v[2*i]);
Thanks
|
|
|
|
|
your "code" does not make sense.
What's the question ?
- You know how to create files/directories and write to them ?
- You know where the executable resides ?
- You know how to check if you have permission to write there ?
As far as I know, it's bad practice to write files where the exe resides, more than often a user will not be able to do so, use the user's "document" folders.
Good luck.
Max.
Watched code never compiles.
|
|
|
|
|
mrby123 wrote: f_ptr22[i] = fopen("rs_sf"+ftitle,"w");
If you really have to, try:
f_ptr22[i] = fopen(".\\subdir\\rs_sf" + ftitle, "w");
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|