|
Does the record set contain more than one table? Have you opened either the record set or the database in read-only mode? If you are using a DSN, is it read-only?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
|
Hello all,
I'm encountering an error 1917 "The RPC call completed before all pipes were processed." while trying to restore an encrypted file by WriteEncryptedFileRaw(), backed up using ReadEncryptedFileRaw(). The error is *not* encountered when trying to restore on an NTFS volume but encountered *every time* trying to restore on a FAT32 volume. I assumed that RAW API will handle the case of "Volume not NTFS so EFS not supported" and decrypt the file and write to the volume as a normal behavior. I couldn't find anything specific to this on MSDN pages.
|
|
|
|
|
How to check programmatically whether password complexity requirement is enabled in local security policy ?
modified on Wednesday, October 22, 2008 7:32 AM
|
|
|
|
|
In my main application, I need to add a new function where people can add lines, circles, and all sorts of doodles to the main view. Imagine the drawing tools in word - similar sort of thing.
I've literally rolled my sleeves up and started coding (on a test copy of the project - not insane!), but I'm sure this is something I can stealreuse the code of from somewhere.
Do you have any pointers to articles, or sites elsewhere I could look? Even a nice toolbar with graphic tool buttons would be a start.
I'm sure a skinny dialog box with line,circle,text buttons, line style, colour picker etc is already done...
Iain.
{edited to change title bar}
modified on Wednesday, October 22, 2008 6:59 AM
|
|
|
|
|
I have a CListCtrl member in my dialog.
During runtime, I fill the control's columns and rows with data
using 'InsertColumn' and 'SetItemText' functions.
Note : This List Control contains 5 rows and 3 columns full of data.
Now, I want a copy of the data of the whole list control in
another ClistCtrl object which I create during runtime using CListCtrl's Create function.
How can I do this since I don't have a 'Copy' function as for data structures
like CStringArray.
|
|
|
|
|
There is no LB_CLONE_FROM_OTHER list control message, so you're going to have to roll your sleeves up and do it yourself.
If you already have code to fill up the first control, can you move that into a function, and call it with either CListCtrl * or a dlg ID?
Or if this will change over time, write a cloning function? Get the number of columns / rows of the first control, set the second one to the same. Call GetItem a lot on the first control, and SetItem a lot on the second?
You'll have to be careful. One thing I can think of is an items lParam - if it is a casted pointer, can you use the same pointer? Or make a new object to point to? Etc. That sort of thing is application specific though.
Iain.
|
|
|
|
|
hi,
i am working on buttons.
could any one explain the mechanism behind the shortcut key for button and its functionality.
i have to use more than 1 button.
hence shortcut key plays an important role.
thanks,
RNarayan
|
|
|
|
|
If this is on a dialog box, it's simple. Loosely, the dialog box message handler grabs keypresses that have the Alt key down also. (eg, Alt-Q). Then it looks in the tab order for a control with that letter in it's text, preceded by an & character. If the control is (eg) a static control, and can't take the keyboard focus, the next control along gets it.
It is a bit more complex when you start mixing in the WS_GROUP style (for radio boxes etc), and && doesn't work...
Try using the resource editor, make a fake dialog, and play for a while.
Iain.
|
|
|
|
|
How to know if a software is installed in the system.
Other than verifying registry entries HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders and HKEY_CURRENT_USER\Software ,is there any other ideal way to find it.
For ex: I want to check if Visual Studio is installed or not. If installed i want to get it's details such as version etc.
modified on Wednesday, October 22, 2008 4:13 AM
|
|
|
|
|
What kind of software? Your software?
|
|
|
|
|
For ex: I want to check if Visual Studio is installed or not. If installed i want to get it's details such as version etc.
|
|
|
|
|
divilin thiyagaraj wrote: For ex: I want to check if Visual Studio is installed or not.
For VS6, you could look for the presence of HKCR\Interface\{96961260-A819-11CF-AD07-00A0C9034965} in the registry.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
it's not that i want to know onlly about VS6........ i want to get all the list of softwares
|
|
|
|
|
|
divilin thiyagaraj wrote: i want to get all the list of softwares
That's impossible since there is no standard way of installing software. For those that used some sort of installer, look in the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall registry key.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I'm trying to recreate a VB program using C++. the link is a screen shot of what I want the program to look like.
http://img98.imageshack.us/img98/6656/guidesigncopysr7.png
I've created an application using the MFC SDI wizards, so I've got the desired menu, toolbar, status bar etc.
Now I want to create the black boxes with the green lines (001 to 016)(they are meant to indicate periods of high and low status)
I have no clue how to start, been doing lots of research, but so far I've only managed to come up with painting in the docview section, but I think that is the wrong approach as these lines would change when the user edits them. I'm thinking I need not a blank white doc/view to work on but more like a form/dialog thing but still keep the menu and toolbar etc. Sorry if I'm unclear, c++/mfc is still fairly new to me.
could someone point me in the right direction
|
|
|
|
|
I think the best approach would be to use a FormView as you said. You have the option to select that in the creation wizard: in the last step (generated classes) you can specify the base class of your view class, select CFormView there.
You will then be able to put controls on the form. There's a section on CP where you can find several charting controls. You can take a look at my signature, I've developped one myself but I'm not sure it is exactly what you are looking for (there are axis and things like that).
|
|
|
|
|
I got a problem when using ffmpeg library.
Hope anybody could do me this favor!
that is :
pavcodec_register_all();
avc = pavcodec_find_decoder(CODEC_ID_WMV3);
if (avc == NULL)
{
MessageBox(NULL, "CODEC_ID_WMV3 decoder Not Found !", NULL, MB_OK);
FreeLibrary(hMod);
return FALSE;
}
avctx = (AVCodecContext *)pavcodec_alloc_content();
if (avctx == NULL)
{
FreeLibrary(hMod);
return FALSE;
}
avctx->extradata = (uint8_t *)malloc(dataSize);
avctx->extradata_size = dataSize;
iRet = pavcodec_open(avctx, avc)
if (iRet != 0)
{
iRet = (int)GetLastError();
FreeLibrary(hMod);
return FALSE;
}
I can't figure out the reason for that fail...
if anybody know why and the correct way to do with that ,please do me this favor! Thanks!!!
|
|
|
|
|
I dont know what the problem is but you can read the documentation to resolve your problem
FFMPEG[^]. There are forum links provided for
FFMPEG Windows Help[^]. That might be a better place to ask questions related to FFMPEG.
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
It seems that you're trying to decode a file. I think the problem is that you allocate initialize your AVCodecContext* instead of loading the file and then getting a pointer to the stream context.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Is this method is the only way to initialize the AVCodecContext structure for decoder ?
If I am trying to decode a real time data stream, is there any other method to initialize that??
|
|
|
|
|
I have no idea how to decode a real time data stream, but here's how you get the AVCodecContext for a normal video file from the hard disk.
int err, ret;
AVFormatContext* ic;
err = av_open_input_file(&ic, InputFile, NULL, 0, NULL);
ret = av_find_stream_info(ic);
for(int i=0;i<(int)ic->nb_streams;i++)
{
AVCodecContext *enc = ic->streams[i]->codec;
if (enc->codec_type == CODEC_TYPE_VIDEO)
{
}
}
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Thanks for your reply, it shows me some useful information, I need more trying on this, but I think maybe I need some more example for this .
Can you show me some demo projects ? Maybe that will be more helpful for me, cause I am just a beginner.
Thanks a lot for all your help.
|
|
|
|
|
Hi,
I have no demo projects, but may be you should ask your questions in the official mailing list at https://lists.mplayerhq.hu/mailman/listinfo/libav-user/[^], you might get more help there. For demos, you can also see output_example.c and ffmpeg.c from the SVN sources.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|