|
What about the permalink (4th place "reply" and so on)
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
thanks for your reply,
but will the permalink adds the post to my favourites?
what i mean is, i should be able to see my favourites from any system. can you suggest in this regard?
and replying tthe interested post and finding them in my posts from my profile page will also do.
but i would have to reply them saying
"thank you and your post is useful for me in future"
which occupies unnecessary space in CP and this may also be in convinient to some members.
thank you.
|
|
|
|
|
Yes, make a try... if you use search for a message, there will be "?" and "search" keywords in the url on the navigator when you go to the selected one. But once you are in the message, if you press "permalink" then the navigator autoupdates itself and in the toolbar you will have an URL in absolute mode with the code ID of the forum and message. So if you add it in favourites or copy paste in a txt you will have the url to the message, although the board grows a lot.
I make it that way, take the permalink and then write down a short description in a txt, adding the link at the end. So I have the direction and something that helps me find the one I need.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
hi thankyou for sending the code ,
your piece of code is working fine when i tried as seperate program
i'm sending the piece of code where i have to change the cursor postion. Since i have to Reset the condent of the combobox for the previous value, can u tell me tsome way to sort it out????
void CBillingDlg::OnEditchangeProductID()
{
int vv=m_ProductID.GetCoun();//m_ProductID
//is my variable for combo box
CString var;
CString xx;
m_ProductID.GetWindowText(var);//getting text//
xx=var;
var=var+'%';
m_ProductID.ResetContent();//Foe clearing the previous values//
m_ProductID.SetWindowText(xx);
/*Below Code for accessing the database*/
CString query;
query.Format("Select ProductID from Product where ProductID like '%s%%'",var);
TCHAR sz[1024];
sprintf(sz, query);
char *ptr=sz;
bas obj;
spring++;
int i=obj.ProductName(ptr,"ProductID");
for(int peek = 0;peek<obj.x;peek++)
{
="" m_productid.insertstring(peek,(lpctstr)obj.usernames[peek]);
=""
="" }
="" *accessing="" the="" database-end**=""
}=""
<div="" class="ForumSig">||SnAkeBed||
|
|
|
|
|
The easy way set the sorted property of the ComboBox to true, if the sort order is defined by the text in the list.
If not the easiest way is to add an “Order by” in the Query. Assuming the Data source supports it (i.e. Any ANSI SQL DB), and the ordering key is accessible in the query.
If the order needed is not defined by the data returned or accessed in the query you need to sort it manually, i.e. loading it into a vector or array, ordering the array with any sorting method (bobble, fast sort, hash tables ...)
Then insert the values from the ordered array.
|
|
|
|
|
Hi,
I have an instant message packet.how can i block this specific packet to reach to the destination?I can block this by changing the content of packet.
But after that no more messages are send by the messenger(Yahoo).
Im working with the packet in VC++ according to this protocol help.
http://libyahoo2.sourceforge.net/ymsg-9.txt[^]
I got the packet. But i can't block this.I think yahoo or TCP\IP send an acknowledgement signal before sending each and every packet or one of them calculate the check sum.So it resend the packet.
How can i do this. If you have any idea please tell me ...
Please help me ..very urgent............
Thanks in advance.......
Jomon
|
|
|
|
|
In general if blocking the packet breaks the protocol you can't do it and expect the protocol to continue. However if you set up a proper protocol transparent transiever which fakes both ends of the protocol you could do it.
| You write this part which mostly justs forwards |
real server<----->fake client interface<>filter<>fake server interface<----->real client
In this kind of arrangement both ends of the original system think they are connected to each other but they're really connected to your software. You can then forward or block packets at will and still provide valid acknowledgements back to the sender so it cannot tell they have been blocked. Depending on the protocol you might have to send alternative faked packets in place of the ones blocked to keep the other end happy in terms of packet sequence numbers, checksums etc.
You should be aware that any such piece of software is probably going to meet the definition of a trojan and may not be legal to actually install. If you write it, it's entirely your responsibility I'm not encouraging you to do so or offering assistance.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
hi i am trying to make a input data validation.
what i am trying to do is when data is inputed it is inputed first as a string(char[])
then i need to convert the string to an int or an float or etc... after i check that it is a valid int and such.
so my question is if there is any function like:
int isvalid<== check weahter an string is a valid int
convert string to int <== convert the valid string into a inv
same for floar and others..
please help i think this is a very useful code to learn
|
|
|
|
|
The are two ways to check whether a string is a valid int:
1) try to convert it and catch any failure conditions.
2) write your own string analysis or perhaps make use of a regular expression implementation to do some kind of custom check on the string.
Look for functions like atoi, atod, atof, strtod? for converting C character array type strings to ints floats and doubles.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
it is weirld but i cant seems to use try{} catch{} in c programming the compilr does accept it anybody knows why?
|
|
|
|
|
try{} catch{} are C++ not C
you shoud tyr __try __except ( ) instead
Warning __try __except is Microsoft Specific so it don't work in other compilers
|
|
|
|
|
HI
i want to use different captions for each MDI child window i create.
i am creating it using CreateNewChild function.
also how to assign some values for each child i create so that i can iterate over them or identify them using that value.
Thanx'n'advance
|
|
|
|
|
I made it (Inside DOC/VIEW architechture) in the CChildFrm::PreCreateWindow (CREATESTRUCT &cs). If you have that class, perfect. If not... take a look into your docu to that function, maybe it helps you to find out how to do it.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
ya i too have those class n functions available...
plz help me in detail...
|
|
|
|
|
ya i too have those class n function available..
plz help me in detail...
NOTE:
I am creating child window using CreateNewChild.. how can i make use of
cs.lpCreateParams.
|
|
|
|
|
This is more or less what I made.
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE;
extern CFPSDoc* m_pDoc;
;
if ((m_pDoc) && (m_pDoc->m_szNewFrameName != ""))
{ cs.style = WS_SYSMENU | WS_CAPTION | WS_OVERLAPPED;
;
if (m_pDoc->m_szNewFrameName == "ViewType1")
{ int nMax = 0;
if (m_pDoc->m_cmlMyList1.GetCount () >= m_pDoc->m_cmlMyList2.GetCount ())
nMax = m_pDoc->m_cmlMyList1.GetCount ();
else
nMax = m_pDoc->m_cmlMyList2.GetCount ();
cs.cx = 500;
cs.cy = (40 + (25 * nMax));
m_pDoc->m_szNewFrameName = "This is the Type of view 1 in project \"" + m_pDoc->GetTitle () + "\"";
}
else if (m_pDoc->m_szNewFrameName == "ViewType2")
{ cs.cx = 528; cs.cy = 322;
m_pDoc->m_szNewFrameName = "Second type of View in project \"" + m_pDoc->GetTitle () + "\"";
cs.style = cs.style | WS_MINIMIZEBOX;
}
else if (m_pDoc->m_szNewFrameName == "ViewType2_Not_Visible")
{ cs.cx = 1; cs.cy = 1;
m_pDoc->m_szNewFrameName = "";
cs.style = cs.style | WS_MINIMIZE;
}
else if (m_pDoc->m_pObj1 || m_pDoc->m_pObj2)
{ cs.cx = 415; cs.cy = 260;
cs.style = cs.style | WS_MINIMIZEBOX;
}
else if ((m_pDoc->m_pObj3) && (m_pDoc->m_pObj3->m_nType == 0))
{ cs.cx = 517; cs.cy = 421;
cs.style = cs.style | WS_MINIMIZEBOX;
}
else if ((m_pDoc->m_pObj3) && (m_pDoc->m_pObj3->m_nType == 2))
{ cs.cx = 610; cs.cy = 435;
cs.style = cs.style | WS_MINIMIZEBOX;
}
;
cs.lpszName = m_pDoc->m_szNewFrameName;
}
return TRUE;
}
This is what I use to configure the different type of views that may be opened. Up to 50 different views in 6 different configurations.
Was that what you were asking for? If not... sorry. I didn't understand what you told me
the ";" are used just to avoid the cancellation of empty lines
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Thanks man..
This will solve my problem.
Cheers....
|
|
|
|
|
You are wellcome
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Hi,
I have created MFC Activex Control in VS 2005.It is working very fine on my machine.
Now I want to run it on the different machine(NOTE : Without VS 2005).So I tried to register it with REGSVR32 , but I gives me the error like.....
LoadLibrary ("ActivexVS05.ocx") failed - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
And also it is registered very easily on diff machine with installled VS 2005.
So,Can anyone suggest me what is the problem??
Ashish Bhatt
|
|
|
|
|
|
Thanks For Reply.
As you told me to read the content as linked in your reply, I read it very carefully.
And I got one confusion that In this content I found the below line.........
If you redistribute an MFC DLL, be sure you redistribute the retail version rather than the debug version. Debug versions of the DLLs are not redistributable. Debug versions of the MFC DLLs have a trailing "d" in their file names, as in Mfc80d.dll.
Here how can I redistribute my ocx of the retail version not debug version.And where this retail version is on my system. Sorry for the such silly quetions but I have no idea about this retail version.
can you suggest me something more?
Thanks.
Ashish Bhatt
|
|
|
|
|
|
Thank you very much for replying me. After very long time but still reply is important.
Now in present I have started my control to be registered on other PC also.
If you have no any problem then may I ask you one more quetion?
So, At right now I have created one package of Project setup to install my Activex on other PC.But I have to register my control manually Using REGSVR32.exe But I want to register that Control during package installation Process.
Do you have any Idea?
I so then you can share with me.
Thanks.
Ashish Bhatt
|
|
|
|
|
Hi Ashish,
Thanks.
Yes, you can very well use the RegSvr32.exe in packager. However, I don't know much about how to.
Regards,
Paresh.
|
|
|
|
|
Hi,
I am working on disabling menu options,tool bar options and handling windows messages on another application.
I am able to disable the menu options of another application by getting
a handle to that application using FindWindow API.
Is it possible to handle the windows messages on another Application?
I want to disable the right click option on another application.
Is it possible? Any suggestions would be appreciated.
Thanks
Satya
Today is a gift, that's why it is called the present.
|
|
|
|