|
seems that you forgot the link...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
|
I recommend doxygen as well.
Here[^] you find one of my articles how to get started
We say "get a life" to each other, disappointed or jokingly. What we forget, though, is that this is possibly the most destructive advice you can give to a geek.
boost your code || Fold With Us! || sighist
|
|
|
|
|
Thank you everyone
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
I used AutoDuck about 10 years ago. Its author, Eric Artzt, used to work for Microsoft. Last I heard he left, so I'm not sure if his utility has been revised any more or not.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hi
I am making a Slide-Show in PictureBox in Visual C++ 7.0 .
I have a statement "Controls->Add(PictBox)" in two different functions.
First: In constructor.....It shows the Tooltip like this
"__property enum System::Windows::Forms::System __gc *System::Windows::Forms::Control::Controls"
and works fine
while
as I put the time intervals....
Second: In "OnTimedEvent" function...It shows the tooltip like this
"__property System::Windows::Forms::Control::ControlCollection __gc *System::Windows::Forms::Control::Controls"
and gives error "left of ->Add must be poing to class/struct/union"
How can I solve this error? or Change the Property?
Thank you
Janak
|
|
|
|
|
Hi!
I have created 2 sound buffers.On first one I've set notyfication points and on the other i didnt.But even when I use second buffer for playing, my notification events still occur!!
Why this happens???Should it not whatch only my first buffer??
Thanks in advance!
|
|
|
|
|
I want to create graphical equalizer...
I want to redirect sound stream to internal speaker...
I use DirectShow.
Please, tell me, how can I do it or where can I find info about it.
Dk_2000
|
|
|
|
|
I can't answer specific questions about DirectShow here, but in general to create a graphic equaliser you'll need to take the input sound, and apply a Fourier Transform (often a Fast Fourier Transform, or FFT - see here or google for more details. This converts an input buffer from a set of sampled volumes into its component frequencies. You can then scale each frequency differently; lower and higher frequencies can be amplified for example, and mid-range frequencies could be reduced. After that, an inverse FFT converts the frequencies back into their equivalent samples, which can then be played out.
Matt Godbolt
Engineer, ProFactor Software
StyleManager project
|
|
|
|
|
Hi all,
In my application of office automation, i add to my project object library(*.olb) of the version present on my system.
But in this case i will only be able to run my application only for that version of office whose library i have included.(In my case, it is office 2000).
in short, automation application developed using object library of office 2000 will run for office 2000 only which is actually not intended.
How should i solve this compatibility issue?
i may be asking a very naive Question. but i don't have any idea on this.
Kindly Guide.
Regards,
Ankush Mehta
|
|
|
|
|
Ankush Mehta wrote: in short, automation application developed using object library of office 2000 will run for office 2000 only which is actually not intended.
What kind of problems are you experiencing? I have some word automation in my app it compiles against Word 9 (office 2000). The target PCs all have Office 2003. Everything works just fine. I did have to modify the way I was doing some stuff but other wise all works well.
ZeePain! wrote: This seems like one of those programs that started small, grew incrementally, building internal pressure, and finally barfed all over its source code sneakers. Or something.
thedailywtf.com[^]
|
|
|
|
|
Actually you used office 2000 type library.right!Now your application will work fine in all probability for all the later versions.However, try it on a machine with some prior office version(prior than office 2000) & it may fail.
To play safe, it is suggested to use as earliest possible type library,probably office 95.However, there is an exception for access 97 which fails if run on access 2000 machine.Moreover, this early binding is not entirely reliable because some methods may be unavailable.
The solution is late binding which although cost an overhead , it is for multiversion office automation.One hybrid binding(DISPID binding) is also used. i am still going through it to get more info.
I would like anyone to help & shed some light on late binding & hybrid binding(DISPID binding).Looking forward to some ideas,
Regards,
Ankush Mehta
|
|
|
|
|
I don’t have any means for testing. All of my computers are running 2000 or newer and I’m far too lazy to test it anyway.
I do know you incur an initial performance hit with late binding; but after the object has been created the performance should be the same as early.
I guess it comes down to how often are you creating the object (of access I guess in this case). If this is a database based app why not roll your own function that you’re relying on for access?
What are you trying to accomplish?
ZeePain! wrote: This seems like one of those programs that started small, grew incrementally, building internal pressure, and finally barfed all over its source code sneakers. Or something.
thedailywtf.com[^]
|
|
|
|
|
I assume your trying to use office automation to print an access table as posted here http://www.codeproject.com/script/comments/forums.asp?msg=1298682&forumid=1647#xx1298682xx[^]. Here is a good quick way to dump a recordset to a excel file, then call shellexecute to print that file. Delete it it after your done.
CString str;
str.Format("SELECT * INTO [Excel 8.0;DATABASE=%s].[%s] FROM [%s]", ExcelFile, Worksheet, table);
Create an ADO Connection object to the database then call.
pConn->Execute(str.AllocSysString(), NULL, adExecuteNoRecords);
ZeePain! wrote: This seems like one of those programs that started small, grew incrementally, building internal pressure, and finally barfed all over its source code sneakers. Or something.
thedailywtf.com[^]
|
|
|
|
|
Well, let me explain the scenario.
i wanted to create an application to print
1) Word Document
2) Text file
3) Excel Sheet
4) Access tables
5) Powerpoint Slide
6) Webpage
7) images(bmp,jpg,jpeg,gif)
i initially started with using automation.As an afterthought, i found 1),2),3),7) can be printed using shell Execute.
However, for 4),5),6) automation is the solution(that is what i think).Since my application is supposed to run on muliversion, Late binding must be used.As a matter of fact, i have even achieved printing using automation but i don't know if it is early binding or late binding and that is where i don't have any idea buddy......
Ankush Mehta
|
|
|
|
|
i need process handle without using Psapi.lib to terminate a application. i have window handle (HWND).
-- modified at 3:56 Wednesday 7th December, 2005
|
|
|
|
|
gpswamy wrote: i have window handle
What about sending WM_CLOSE message using SendMessageTimeout!
gpswamy wrote: i need process handle without using Psapi.lib to terminate a application
The code I send you last night, doesn't depend upon psapi.lib i.e. TerminateProcess uses kernel32.lib and Process32First,Process32Next and CreateToolhelp32Snapshot use toolhelp.lib . {OT}Is your boss at ZI not helping you?
"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
|
|
|
|
|
I haven't tested this solution but, you can use:
DWORD GetWindowThreadProcessId(HWND hWnd,LPDWORD lpdwProcessId);
to get the thread id that created the window hWnd .
Then use OpenThread(...) to get the thread handle of the thread-id returned by the GetWindowThreadProcessId(...) function. Then use TerminateThread(...);
The requirements for OpenThread(...) are high:
Client:
Requires Windows XP, Windows 2000 Professional, or Windows Me.
Server:
Requires Windows Server 2003 or Windows 2000 Server
this is this.
|
|
|
|
|
CPictureHolder ph;
ph.CreateFromBitmap(IDB_BITMAP1);
m_iml.SetRefListImages(ph.GetPictureDispatch());
//CImageList1 m_iml , it's a class with the activex control
It's a runtime error.
|
|
|
|
|
I want to add new controls to Common dialog boxes. I have gone through the Customizing Common Dialog Boxes article and it does not provides a standard procedure for adding new controls to Common Dialog Boxes.
|
|
|
|
|
I want to use a control called "Microsoft ImageList Control 6.0 (SP6)",
but I don't know how to use it after inserted it to my project.
Thanks.
|
|
|
|
|
Can I restrict a class not to have more than 2 objects?
How it is possiable?
For example:
class CMyClass{};
void main()
{
CMyClass *pCls1 = new CMyClass();
CMyClass *pCls2 = new CMyClass();
CMyClass *pCls3 = new CMyClass();
}
Any one please help me.
Nice talking to you.
|
|
|
|
|
static CMyClass ::Counter=0;<br />
<br />
initilaize a static member to zero;<br />
CMyClass()<br />
{<br />
CMyClass ::counter++;<br />
<br />
if(CMyClass ::Counter>2)<br />
{<br />
this->~CMyClass()<br />
return;<br />
}<br />
<br />
}<br />
<br />
~CMyClass()<br />
{<br />
if(CMyClass ::Counter>2)<br />
{CMyClass ::counter--;<br />
return;<br />
}<br />
CMyClass ::counter--;<br />
}<br />
//dont go for default constructor
-- modified at 3:04 Wednesday 7th December, 2005
|
|
|
|
|
Thank you.
I also thought near to you.
class CMyClass{
public:
static int i;
CMyClass()
{
++i;
if(i>2)
{
printf("cannot create more than 2 instances");
~CMyClass();
}
}
~CMyClass()
{
--i;
}
};
void main()
{
CMyClass *pCls1 = new CMyClass();
CMyClass *pCls2 = new CMyClass();
CMyClass *pCls3 = new CMyClass();
}
But my friend sayingthat
Look up Singleton design pattern, since this is related to such a design pattern. Basically, you make the constructor private, and provide a public static member function to create an object. The static function controls whether to actually create a new object, or return one of the already created objects. Can I expect the solution in this way.
I dont know what is design patterns? Please help me.
Nice talking to you.
|
|
|
|
|
just know i have modified it.Check it
|
|
|
|