|
How can I push out my app to the rest of the user in the LAN? So they can run my app.
|
|
|
|
|
hi, in correspodace to my graduation project i need a progarm that converts monochrome bitmaps to a 2-D array ... i would be glad if u could help me .
your's faithfully
|
|
|
|
|
Hi,
Normally bitmaps are stored in 1D arrays.
For exemple you have 640x480 bitmap, the way to get to a pixel would be like this:
<br />
char bitmap[640 * 480];<br />
<br />
bitmap[x+(480*y)] = value;<br />
If you want to convert the exemple above to a 2D array, you can do the following:
<br />
char bitmap[640*480];<br />
char bitmap2D[640][480];<br />
<br />
for( int y = 0; x < 480; y++ )<br />
for( int x = 0; x < 640; x++ )<br />
bitmap2D[y][x] = bitmap[x + 480 * y];<br />
Hope this helps..
|
|
|
|
|
I have a written a header file in the same directory as the .net project. compile time it says cannot find the header file, 'no such file or directory'. I has been added to the headers directory in the project. What have I not done, or whats wrong. Please help.
|
|
|
|
|
Go to the line where you include your header file an check the spelling of the file / class and the problem should be solved
Pascal
|
|
|
|
|
And your question is?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I thought I had this problem solved, but I seem to have hit a problem with a 4 bit field on a byte boundary.
Can anyone suggest a solution to an extra byte being added to the structute. I need everything packed tight.
#pragma pack(1)<br />
<br />
typedef struct{<br />
char tc1_w01_month_1_s_ : 4;<br />
char tc1_w01_month_10_s_ : 4;<br />
char tc1_w01_day_1_s_ : 4;<br />
char tc1_w01_day_10_s_ : 4;
char tc1_w02_reserved1 : 1;<br />
char tc1_w02_reserved2 : 1;<br />
char tc1_w02_minute_1_s_ : 4;<br />
char tc1_w02_minute_10_s_ : 4; <big>
char tc1_w02_hour_1_s_ : 4;<br />
char tc1_w02_hour_10_s_ : 2;<br />
char tc1_w03_second_0_01_s_ : 4;<br />
char tc1_w03_second_0_1_s_ : 4;<br />
char tc1_w03_second_1_s_ : 4;<br />
char tc1_w03_second_10_s_ : 4;<br />
}TEST_10_tc1;<br />
<br />
#pragma pack()
|
|
|
|
|
Use int rather than char for the first 32 bits (all except the last 4 fields), and short rather than char for the rest.
It's a good idea to use the largest possible data type size when using bitfields (ie. favour ints /longs ). If you need to prevent padding at the end, then by all means use the smaller data types (ie. short /char ).
Also, be careful about using signed values in bitfields. Generally, it's a good idea to use unsigned values (eg. unsigned int ) because then you can guarantee how the compiler will treat it. If the values are signed, then you have to know whether the compiler sign-extends or zero-extends the value when you're using it in an expression.
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
i am using ADO Connection Strings from this page to connect to an access database. unfortunalty they just contain parameters for userID and user password
e.g.:
strConnection = _T("Driver={Microsoft Access Driver (*.mdb)};"
"Dbq=C:\\VC Projects\\ADO\\Samples\\AdoTest\\dbTestSecurity.mdb;"
"SystemDB=C:\\Program Files\\Microsoft Office\\Office\\SYSTEM.mdw;"
"Uid=Carlos Antollini;Pwd=carlos");
the problem is that the database which i want to connect to is protected with a database password .
is there an other attitional connection string which has the database password as parameter?
thx Bernhard
|
|
|
|
|
By default, user id of an access database is "Admin", hence to open a password protected database, use:
"UID=Admin; PWD=your-password"
Arsalan Malik
|
|
|
|
|
hmmm if i try like this:
CString strConnection = _T("Driver={Microsoft Access Driver (*.mdb)} Dbq=c:\\exchange-b\\ApplicationDatabase.mdb; Uid=Admin; Pwd=myPass;");
m_DB.SetConnectionString(strConnection);
the programm still cant open (m_DB.Open()) the database. are you sure there is no difference between database base password and user password?
if i set a database password and a user password and then i try to open the database from the win explorer, ms access asks me for both passwords ...
so i think i need a connection string which contains the databasepassword
|
|
|
|
|
You'll have to include the database password like so: "Jet OLEDB:Database Password=MyDbPassword;"
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
thanks! that is what i was looking for
|
|
|
|
|
Hi,
I'd like to copy the selected text of any other application
with a system-wide-keyboard-shortcut automaticly to my application.
Should be working like in Babylon Translator.
Maybe someone can guide me to good starting point, or better has
some code that might help me.
Thank you
Mario
|
|
|
|
|
CTRL-C CTRL-V
Look at the WinAPI functions like SetClipboardData and OpenClipboard.
pma wrote:
I'd like to copy the selected text of any other application
The 'selected text' have to be in the clipboard, the concept 'selected text' is a feature in certain components, and not something inherent in a window or an application.
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
well thats clear , I like to copy the text, open my application and paste
this text automaticly. And also the other way round:
- press a hotkey
- my application copy's the text into clipboard
- go-back to the window where we came from
- paste the text
The problem is not to copy/paste to the clipboard. The problem is how to
hook the hotkey with my application, then go back to where the user came
from and copy the text into the clipboard. After that my program needs the
focus again and has to paste the clipboard content into my application.
|
|
|
|
|
pma wrote:
then go back to where the user came
from and copy the text into the clipboard.
There is no way to do that explicitly, read: nicely. A SWAG would be to somehow trigger a CTRL-C in the window.
Hmmm...
Using Win32 API you can get the active window, then you could send a keypressed message containing CTRL-C, and, hopefully, it would have triggered the app to copy something to the clipboard.
Not Quick, but definately Dirty, and one out of two ain't bad
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
its bad, and its something I've already tried, its working with Notepad and
some other applications, but not with Excel, lets sys generaly
Maybe some others have already solved such a thing in the past and can help us out here.
Thank you anyway
|
|
|
|
|
Hello,
I would like to add to my MFC dialog some kind of a ListCtrl, but with two columns. The background is that I have some attributes with names and values and I would like to display these dynamically in this list with the uneditable name of each attribute in the first column and the editable value in the second column.
Any ideas for that?
Thanks
Jens
|
|
|
|
|
jensall wrote:
...some kind of a ListCtrl, but with two columns.
m_listctrl.InsertColumn(0, ...);
m_listctrl.InsertColumn(1, ...);
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
In my application I have setup a memory mapped area.
I have a structure and a pointer to the area.
Are they any way you can examine the memory area using this pointer (Hex dump), rather than using the debugger to examine the data in the structure (bytes, int doubles etc).
Just want to see the memory as its stored without it being mapped to my variables/types.
|
|
|
|
|
sweep123 wrote:
Just want to see the memory as its stored without it being mapped to my variables/types
You can use the Memory button on the Debug Toolbar.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
I am using Visual Studio .Net (version 7.0).
I did manage to get up a display via Debug->Windows->Memory, but when I entered the location (0x01650000) it took it as decimal and displayed hex 0x00192D50.
I converted (0x01650000) to decimal and it reverted back to Hex!!?? (0x00192D50)
Am I on the right feature?
Help
|
|
|
|
|
I can't help with VS 7, but I can tell you this works fine on VC6 as I use it a lot. Sounds like a bug to me. Try searching the VS7 info at MS.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
libcmtd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
.\Win32\Debug/G4W.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I've made all settings in debug mode nad i don't have any work with release and ATL why do i get such error,when i m not working for release.
|
|
|
|