|
Any response please????
With Regards,
Abraham Jose
|
|
|
|
|
Hi,
I want to add ActiveX control.When i go to Project->Add to Project->Components&controls->Registered ACtiveX,
When i click Microsoft Communication COntrol in to my project.
It shows the error as
"Components and controls can be used to add activex control supported by class wizard".
I deleted .clw file and recreated.But the problem exists.
How can i overcome this..Pls help me..
Anu
|
|
|
|
|
Is there any posibility to remove a class from a projet with the class wizard ? i can't find it, or may be there is another way. . thanks.
|
|
|
|
|
Can't you just remove the files (.h .cpp) or select and cut/delete the code and (re)build?
This signature was proudly tested on animals.
|
|
|
|
|
yes i can do that , but there are others files where there are quotes to the classes , once i read a post with 10 steps to completly remove a class, but i can't remember that and i can't find it , besides i wish know if is there some tool to do this job, well there is a tool to create a class, so it would be usefull a tool to remove all calls to the class.
|
|
|
|
|
Remove the class declaration and definition (i.e. its .h and .cpp files). Then re-build and remove references to the deleted class until the project builds...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
With VS6, click the FileView tab in the Workspace window, select the file(s) you want to delete and press the Del key. I don't have one in front of me to check, but similar steps exist for VS200x.
This does not actually remove the file from the OS.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
If you right click the EXE file, chose Properties and go to the Details tab, you will see information about product name, version, etc.
I have a Visual Studio solution / project which compiles into an EXE file. I was wondering where I could set those information in my project.
Thanks a lot for your help.
|
|
|
|
|
Version Information is a resource type added to the project.
So add a resource of type Version and fill up the details.
|
|
|
|
|
There's a Version block: you may see it in the Resource View Window .
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]
|
|
|
|
|
Thanks both of you for the answer. It worked for me.
|
|
|
|
|
i am making chat application .for this why i wrote the following code to receive data. now i want to know how to send data using CSocketFile and CARchive. can any one can send me the code to send data?
is it possible to send or receive following data using CSocketFile and CARchive.
" help me friend,
if u can."
BOOL CMainFrame::RetriveMessage(CServerSocket *svr_sock, CString& msg_out)
{
CSocket sock; // This thing just won't die
if ( !svr_sock->Accept(sock) )
return FALSE;
CSocketFile sockfile(&sock);
CArchive ar_in(&sockfile, CArchive::load);
CString temp;
do
{
ar_in >> temp;
msg_out += temp;
}while ( ! ar_in.IsBufferEmpty() );
CView* view = GetActiveView();
if ( NULL != view)
{
( (CImportListenerView*) view)->m_EditMsgRcv.SetWindowText(msg_out);
}
ar_in.Abort();
sockfile.Close();
sock.ShutDown(2);
sock.Close();
return TRUE;
}
|
|
|
|
|
goutom roy wrote: can any one can send me the code to send data?
You're a software developer, right?
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]
|
|
|
|
|
in the name of god
hello
why this causes error?????
atoi(&stck.top());
error when top from stack and using atoi to change it to integer.
#include<iostream>
#include<stack>
#include<cstdlib>
using namespace std;
int compute(char* srt);
int main(){
int n;
cout<<"please enter the size of string and then the string:"<<endl;
cin>>n;//for example 3
char *str=new char[n];
cin>>str;//for example 12
compute(str);
}
int compute(char* str){
stack <char> stck;
stck.push(*str);
stck.push(*(str+1));
while(!stck.empty()){
int first=atoi(&stck.top());
cout<<"this is first:"<<first<<endl;
stck.pop();
int sec=atoi(&stck.top()); // WHY THIS CAUSE ERROR AND RETURN 12 INTEAD OF 1??????????
stck.pop();
cout<<"this is sec:"<<sec<<endl;
}
return 0;
}
|
|
|
|
|
You don't need the & inside the atoi function.
|
|
|
|
|
khomeyni wrote: int n;
cout<<"please enter the size of string and then the string:"<<endl;
cin>>n;//for example 3
char *str=new char[n];
cin>>str;//for example 12
This is fragile (what if the user inserts a longer string?).
khomeyni wrote: int compute(char* str){
stack <char> stck;
stck.push(*str);
stck.push(*(str+1));
while(!stck.empty()){
int first=atoi(&stck.top());
cout<<"this is first:"<<first<<endl;
stck.pop();
int sec="atoi(&stck.top());" why="" this="" cause="" error="" and="" return="" 12="" intead="" of="" 1??????????
stck.pop();
cout<<"this="" is="" sec:"<<sec<<endl;
}
return="" 0;
}<="" blockquote="">
This is a mess.
The function is confident that <code>(str+1)</code> is a valid address. That may be not true.
If you need to convert each single character into an integer then don't use <code>atoi</code>.
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]
|
|
|
|
|
thanks
i will take in mind your advises.
thanks.
valhamdolelah.
|
|
|
|
|
atoi() expects a char* rather than a char .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Hi All,
I am using CAcroAXDocShim classes for AcroPDF.dll in my project.
My projects main dialog uses this control to display the PDF's.
From my Main dailog, if i use the scrollbar, the PDF control dosent refresh properly.
i.e brown stripes gets in middle all over the PDF.
I taught of posting a refresh message to the PDF Control, but CAcroAXDocShim class dosent have a refresh method.
Can any one give me some suggestions on how i can get out from this refresh issue.
Thanks,
Kasi
|
|
|
|
|
Hi,
Is it possible to split view windows like frame frame window with CSplitterWnd?
class CMyWnd : public CView
{
protected:
DECLARE_DYNCREATE(CMyWnd)
public:
CMyWnd();
virtual ~CMyWnd();
CSplitterWnd m_sp;
};
BOOL CMyWnd::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
{
m_sp.Create(this, 1,2, CSize(10, 10),
pContext);
if(!m_sp.CreateView(0, 0,RUNTIME_CLASS(CAview), CSize( 100, 300), pContext))return FALSE;
if(!m_sp.CreateView(0, 1,RUNTIME_CLASS(CCview), CSize(400, 300), pContext))return FALSE;
return CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext);
}
After doing above, to make window I did as followings.
program die...
Is it possible to split CView window with SplitterWnd?
CMyWnd *p = new CMyWnd;
p->Create(NULL, NULL, WS_CHILDWINDOW | WS_CLIPSIBLINGS | WS_OVERLAPPED | WS_VISIBLE|WS_BORDER,
CRect (10,80, 1280,1024), this, 100, NULL);
p->ShowWindow(SW_SHOW);
|
|
|
|
|
Hi
Hers's the problem :-
file:///C:/Users/dalia/Desktop/5th%20Lab/ACM%20Problems/674%20-%20Coin%20Change_files/674.htm
I tried to answer it but there is an error with Code ..
Would You please tell me what's wrong with it ?
#include<iostream>
using namespace std;
int main()
{
freopen("input.txt","r",stdin);
int n;
int d[5]={50,25,10,5,1};
int c[7490];
int s[7490];
int count=0;
c[0]=0;s[0]=0;
c[1]=1;s[1]=1;
for(int j=2;j<7490;j++)
{
count=0;
for(int i=0;i<=4;i++)
{
if((j-d[i])>=0)
{
c[j]=1+c[j-d[i]];
count++;
}
}
s[j]=count;
}
while(cin>>n)
{ cout<<s[n]<<endl;}
return 0;
}
Thanks
|
|
|
|
|
There's no user dalia in my computer.
--
Si dos montan un caballo, uno debe ir detrás.
|
|
|
|
|
|
Really? I thought all machines had the coursework pre-installed.
|
|
|
|
|
DaliaMagdy wrote: Would You please tell me what's wrong with it ?
Does it compile?
Does it run?
Do you get any error messages?
Please give us a clue.
|
|
|
|