|
thierrypp wrote: I want to update several times a day because it contains new data inside.
Why store data directly inside of your application? Your app should be getting that data from a data source, a simple flat text file or database would suffice. Doing so would eliminate the need to recompile so often.
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[^]
|
|
|
|
|
Hi,
No, in fact it contains secure keys to update frequently.
That is why the less I display the best is the security.
But let's say, ok I can manually change data within the *h and *cpp file.
Then if I have previously built up a makefile called "filesecure"
how can I rebuild all until have a new executable file?
I am working with Visual C++ 6.0
Best Regards
|
|
|
|
|
Still makes no difference, hiding that data inside of the binary is still no different than hiding it in plain sight. Remember if its human readable even when its in the binary its still human readable. It would much more secure to look at a different approach to your security.
Building at the command line is done via nmake, this is the easiest way to do an auto build. MSDN Link Building on the Command Line[^]
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[^]
|
|
|
|
|
There is an option in VS6 to create make files for you. I dont remember off the top of my head where the option is. But use it to create your first make file. Other wise here is an example from the MSDN.
Sample Makefile[^]
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[^]
|
|
|
|
|
Yes I made one called
FileSecure.MAK
but now from a complete directory, how to manage this from windows XP?
On MSDN, it is well explained, thank you,
but to be practical.....
How to launch this Filesecure.Mak from C:\sptp folder?
and my project FileSecure is located in an other path#
|
|
|
|
|
I'm just guessing here as I have never had to use NMAKE (I just know it’s a tool available and part of VS, there are better Automated building applications out on the internet). You probably have to supply the full qualified path to all of the files within the NMAKE file. Or it looks like there is an option to supply file paths as part of the NMAKE command.
Running NMAKE[^]
NMAKE Options[^]
Running NMAKE is done via the command line; you could even create a batch file with the necessary options / commands to simplify it even further.
Lastly I still urge you to consider an alterative to your current security set up, remember that your “key” is still visible in the binary and in the header and is plainly visible to everyone (sorry I just to had to say it)
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 have some code that is written in C# that I'd like to somehow integrate into one of our Win32 API C/C++ applications. Is it possible to call the C# code in any way...through a DLL, or something?
We'd rather not have the API code app spawn a process that has the C# app, which is the only solution we can think up.
Thanks,
|
|
|
|
|
|
Perfect! Just what I was looking for, and of course the answer was on The Code Project website.
Thanks
|
|
|
|
|
I have been asked to investigate the possibility of writing a "virtual printer driver", so that we can distribute to our customers to enable them to print-to from any third-party software and allow us to generate an XML file output with text and some "information" about some graphics!
If anyone can direct me towards either some URL's or books etc, that can assist in the development of printer drivers I would be very appeciative of them Any advise on the matter would also be appreciated, especially if you have written printer drivers before.
|
|
|
|
|
Do you know FreePDF? It is a virtual printer driver for PDF. Probably the author of this driver can help you.
http://freepdfxp.de/fpx732.htm
Good luck.
Philipp Grohs
|
|
|
|
|
Using the MS DataGrid in two different dialogs but in the same parent dialog
I get the following error
:\library\librarian\datagrid.h(13) : error C2011: 'CDataGrid' : 'class' type redefinition
What should i do to solve this problem ?
Check the following :
In the main parent dialog with the name Properties.h i include the
#include "BookNewDonator.h"
#include "BookNewSupplier.h"
which each of them has a DataGrid member in their classes and of course they include the
"datagrid.h"
What sould i do ?
sdancer75
|
|
|
|
|
Add
#pragma once
to the top of datagrid.h
The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).
|
|
|
|
|
Use preprossor if condition to check datagrid.h file included already or not.
mean you have to write the datagrid.h codes inside the #define directive.
Example..
#if !defined(DATAGRID_H__INCLUDED_)
#define DATAGRID_H__INCLUDED_
......
#endif // DATAGRID_H__INCLUDED_
regards
Vallikumar A
|
|
|
|
|
The #pragma once solved the error !
Thank you !
sdancer75
|
|
|
|
|
My application writes the avi-files using the VFW Windows API-calls.
But the problem I encounter now is the size limit of the avifile using VFW. I understand that using DirectShow instead of VFW solves this problem. But DirectShow is quite new to me.
Could anybody give me some hints how to use DirectShow for writing avifiles? (Using interfaces like IGraphBuilder?)
I am looking for a DirectShow-function that is a equivalent for AVIStreamWrite. At this function it is possible to present a data pointer. I have been looking in the DirectShow-documentation but I cannot find a function to which I can present a data pointer from a bitmap/frame.
|
|
|
|
|
Will directshow is different from VFW API
First it is com based, so no more flat API calls, just com objects
Second, DirectShow framework depends upon waht is called a Graph and Filters.
So I think what you need is to develop your own data stream filter (there is examples with directshow) and build a graph to capture from your stream filter to the avi file.
Data Stream Filter ----> VIDEO ENCODER Filter (if any) ---> AVI MUX Filter ---> File Writer Filter.
Hope this helps to figure out what reading you need in directshow to do your work
Hesham
|
|
|
|
|
I added the splash window component from the VC6 components in my application, usually, as far as I remember, this is really a simplistic procedure, and should not cause any problem at all.
but alas, things started to go wrong.
at some point, when the splash screen is visible, my application receives a message ( WM_SIZE ) and in the handler, I call AfxGetMainWnd and it returns a pointer to my splash screen CWnd instead of the real mainframe CWnd.
CMainFrame* pMainFrame = (CMainFrame*)AfxGetMainWnd();
in the debugger, pMainFrame is wrong, and shows as a CSplashWnd.
in MSDN, the AfxGetMainWnd documentation says this :
If AfxGetMainWnd is called from the application's primary thread, it returns the application's main window according to the above rules. If the function is called from a secondary thread in the application, the function returns the main window associated with the thread that made the call.
Would that be the case ? I don't have multiple thread, but the splash CWnd could be the secondary thread ?
Any idea ?
Thanks.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
DOes your application's main window exist while the splash screen is visible, or does it get created after the splash screen goes away?
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
the splash window is created at the end of my main frame OnCreate ; does not work either if it is done at the beginning.
I tried different things, and i seems to "work" if I SetFocus back to the main frame class as soon as the splash window is created.
but this hack doesn't look good to me, it might show something that is completly wrong with what I do with mainframes and other windows; I have a complex top level UI.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
ignore the resize event if the window is a splash screen.
-Prakash
|
|
|
|
|
but it's not the splash screen ( CWnd ) that receives the WM_SIZE, it's another CWnd, which is part of my UI.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hi Friends
I am developing a dialog based MFC application in which I need to disable and enable all the sounds at certain time. I need to disable sound which comes when an IM receives instanant message from Yahoo and you get a sound, a sound of warning and all such sound should be disabled....
Is there any application which helps me do this ?
Or any idea ?
Mahesh
|
|
|
|
|
Are you wanting to mute all input devices? If so, this article might help.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
I am using SQl SERVER 2000 as database, and visual c++ 6.0.
I want to write my sql server path in a variable and to access it in my program so to write the path.
secondly, i want to have in my program the name of my computer and user name.
How can I do it ?
I learn my self
-- modified at 9:32 Tuesday 17th January, 2006
|
|
|
|