|
yes i thought that and replied to Subbarao. It's just a mismatch in the fieldnames defined in C<<proj_Name>>View.cpp n the one existing in the DB. U pointed out the solution to me yesterday.
but strange thing was that the m_pSet->m_Pass was only thing not getting retrieved whereas all other values from table(s)(even other tables) were showing up.
What do u think could be the reason
-- modified at 2:38 Thursday 28th December, 2006
Shouvik
|
|
|
|
|
Again, there might be mismatch in field names. Have you tried using GetFieldValue .
But, you solved your prblem, isn't it?
|
|
|
|
|
no not anymore. had there been the prob existin still now there would ve been a Too few parameters. Expected 1. would've been the message again. all fields are set right so its working fine now.
Shouvik
|
|
|
|
|
hi ,
i am looking for sample programs on tree view control with check boxes. if any body having could u plz send it to sramesh21@gmail.com.
thanks in advance,
regards,
ramesh s
ramesh s
|
|
|
|
|
ramesh_s21 wrote: am looking for sample programs on tree view control with check boxes
A little search would have helped you[^].
ramesh_s21 wrote: if any body having could u plz send it to sramesh21@gmail.com.
No , could not. Above article should suffice.
|
|
|
|
|
thanks prasad
regards,
ramesh s
|
|
|
|
|
Send answer to your query.
You need to handle WM_NOTIFY , with cide NM_CLICK , for handling set and get check.
|
|
|
|
|
hi,
one method is that u have to drag n drop ur control on ur dialog and setproperties in that tick the checkboxes n proceed....
second menthod is that in precreate window u have change ex-style parameter to get checkboxes
kalyan
|
|
|
|
|
ya kalyan i knew that.
my problem is i need to implement a situation where if i select a root item , all its child items should also get selected. for that i am looking for examples which include event handling such as WM_LBUTTONDOWN etc..
i am trying to work with GetCheck(param..) SetCheck(param..) .
but dont know where i am going wrong...
thats why i askd for example program...
regards,
ramesh s
ramesh s
|
|
|
|
|
Im not sure where I saw example but see www.codeproject.com and www.codeguru.com
|
|
|
|
|
You can see TreeCtrl section on codeproject it has a lot of articles that helpfuls for you
|
|
|
|
|
What the function use for get/put text data from clipboard.
|
|
|
|
|
Max++ wrote: How to get data from clipboard
See here[^] and here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Hi,
I have finally got a sample test filter working with the help of Mark Salsbery.
I have written a Source Filter using the sample code provided in the Directshow SDK more specifically I have used the CPushSourceDesktop source filter. I havent changed the name, but I have changed all the GUID's and stuff.
I then ran the filter in GraphEdit and it runs without any problems.
So now I am wanting to access this in C++ code, my understnading is that if it works in GraphEdit, then it has to work in C++. So I know the problem is there is something I am not linking to it.
So I have taken what Mark has said
http://www.codeproject.com/script/comments/forums.asp?msg=1820218&forumid=1647&XtraIDs=1647&sd=29+Sep+2006&ed=28+Dec+2006&author=godspeed123&stype=1#xx1820218xx[^]
and implemented it, all of the source filter is working and compiles fine
So now in the C++ program that I want to run this in I have done the following
CPushSourceDesktop *pMyFilter;
and then do this
hr = CoCreateInstance(CLSID_PushSourceDesktop, NULL, CLSCTX_INPROC_SERVER,
IID_IBaseFilter, reinterpret_cast(&pMyFilter));
hr = pGraph->AddFilter(pMyFilter, L"PushSource Desktop Filter");
IMySourceFilter *pifMySource = NULL;
pMyFilter->QueryInterface(IID_IMySource, reinterpret_cast(&pifMySource));
Its giving me linking errors :
error LNK2001: unresolved external symbol _IID_IMySource
error LNK2001: unresolved external symbol _CLSID_PushSourceDesktop
I included everything
#include "Dshow.h"
#include "Qedit.h"
#include "Streams.h"
#include "PushGuids.h"
#include "PushSource.h"
and the lib I included Strmiids.lib Quartz.lib MemorySource.lib
I am getting these two linking errors which mean I am not putting something into the IDE.
Any help would be appreiciated
|
|
|
|
|
Something is up with the GUID definitions...
My reply[^]
|
|
|
|
|
Hi,
I have a list control with check box style. I want to hide an item .Is there any function available to hide the item and also I need to know if there is a function available to disable the item ?
Thanks in advance.
Taruni
|
|
|
|
|
Taruni wrote: if there is a function available to disable the item ?
Thanks in advance.
only way to achieve that by ListCtrl Subclassing, i.e. http://www.codeproject.com/listctrl/[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Hi all, i created a function that retrieves the url from the address bar in IE, however it needs work. If i place the SendMessage function in a if statement it returns a bunch of useless garbage. But if i take away the if statement it works like a charm, and grabs everything that i dont want. I'd just like to filter out everything else and just retrive the http: strings.
My code:
<br />
#include <windows.h><br />
#include <stdio.h><br />
#include <fstream><br />
using namespace std;<br />
int main()<br />
{<br />
HWND handle=FindWindow("IEFrame",0);<br />
HWND handle2=FindWindowEx(handle, 0, "WorkerW",0);<br />
HWND handle3=FindWindowEx(handle2, 0, "ReBarWindow32", 0);<br />
HWND handle4=FindWindowEx(handle3,0,"Address Band Root",0);<br />
HWND handle5=FindWindowEx(handle4,0,"ComboBoxEx32",0);<br />
HWND handle6=FindWindowEx(handle5,0,"ComboBox",0);<br />
HWND handle7=FindWindowEx(handle6,0,"Edit",0);<br />
char addy[MAX_PATH];<br />
if(strstr(addy,"http:")!=NULL)<br />
{<br />
SendMessage(handle7,WM_GETTEXT,MAX_PATH,(LPARAM)(LPCSTR)addy);<br />
<br />
}<br />
ofstream out;<br />
out.open("huh.txt",ios::app);<br />
out << addy << endl;<br />
out.close();<br />
return 0;<br />
}<br />
This code compiles fine under VC++ so anyone can test it to see what im talking about. What do i need to do to fix this problem? Maybe send the message to another function or something? Any help would be greatly appreciated. Thanx in advance!
|
|
|
|
|
dellthinker wrote: char addy[MAX_PATH];
if(strstr(addy,"http:")!=NULL)
{
SendMessage(handle7,WM_GETTEXT,MAX_PATH,(LPARAM)(LPCSTR)addy);
Here you are using uninitialized addy , Hence strstr is returning NULL all the time and SendMessage is not getting called at all.
Hence you are getting same garbage value of addy .
|
|
|
|
|
Thanx for your reply prasad_som, can you suggest a way i can resolve the matter now?
|
|
|
|
|
dellthinker wrote: can you suggest a way i can resolve the matter now
Why you are using if statement ? I dont understand, because Using SendMessage you are populating buffer . May be you can use if statement after SendMessage .
But again, its upon you , what logic to implement.
|
|
|
|
|
Use the if statement after the SendMessage, of course! Then make the ofstream within the if statement. I thought i tried this before, thanx a lot for your suggestion prasad_som. You saved me a lot of trouble!
|
|
|
|
|
You haven't initialized addy to anything. Calling strstr() on it doesn't make sense since you'll be comparing against random data on the stack.
|
|
|
|
|
Hi
I want to write a application(MFC), which can be run in two way
1. Auto run at start up.
2. Manually run by user.
I want to know that, is there any way to identify
whether it is manually running or autorun.I want to impliment some functionality according that in the exe.
Acually i want to impliment this in the InitInstance();
nkb
|
|
|
|