|
by: AMS |
last post by:
I am trying to create a thread to execute a script for me and then
display the output in notepad.
What is happening is when I call the CreateThread method and pass in
the Routine and Parameter the parameter that is being passed is
distorted when it reaches the routine. If I output the parameter in
the routine it is just garbage. It works fine on Win NT but not in Win
2000.
Here is my method that calls CreateThread
|
by: __PPS__ |
last post by:
Actually what I mean is that - if I have some memory buffer, lets say
char a; and then I do like this:
DWORD num = 0x1234;
*(DWORD*)a = num; (1)
*(DWORD*)(a+1) = num; (2)
either (1) or (2) will assign dword value to not dword aligned
address. The question is - will this code be fatal on some systems??
|
by: Albretch |
last post by:
.. I am trying to create a database in a MS Access DB via JDBC drivers.
I have tried both sun.jdbc.odbc.JdbcOdbcDriver and ids.sql.IDSDriver
From some reason both drivers Exceptions tell me 'Syntax error in
CREATE TABLE statement' even though I am not creating a table, but a
Database
// - - - - - - - - - - - - sun.jdbc.odbc.JdbcOdbc
aSQL=CREATE DATABASE dbtest;
java.sql.SQLException:
|
by: John J. Hughes II |
last post by:
I need to save a DWORD to the sql server, the below posts an error, any
suggestions on what I am doing wrong. I have the column in the sql server
defined as an int since unsigned int is not valid. Also trying to avoid
setting it to a bigint in the server. Casting an int to an uint use to work
in C++.
System.Data.SqlClient.SqlConnection cn = new
System.Data.SqlClient.SqlConnection(...);
cn.Open()
|
by: ±èº´¼®\( Kevin Kim \) |
last post by:
Hi all
__gc class Test
{
};
void Temp( void )
{
Test *pTest = new Test;
|
|
by: Vladimir_petter |
last post by:
Hello All,
I've fount that if I compile the same program using gcc and vc 2003 the same class E (see complete source bellow) has different size (on vc it is 4 bytes bigger). Digging into this I've found that vc is reserving a dword in the E class right before storage for virtual base class. In my tests value of this dword always was 0. I did not see any code referencing this memory.
Anybody has any idea what this dword is for?
...
|
by: Gabest |
last post by:
Running this piece of code while having the sse optimization turned on
(vcnet2003), something really strange happens I cannot explain. Without sse
it is giving me the right results.
float f = 0.8;
f *= UINT_MAX;
DWORD dw = (DWORD)f;
Basically the result in dw should be 0xcccccccc (or 0xcccccd00 because of
float's inaccuracy), but instead I get 0x80000000 for anything above f =
|
by: monkeydragon |
last post by:
how to would you transfer a DWORD variable from inside of a function to
the caller
ex.
InvokeProcessData(LPDWORD prtDW)
{
...
// we have created, initialized and processed
// dword variable from
DWORD data;
|
by: Jeremie Legault |
last post by:
Hi Everyone,
I am creating an application to interface with Terminal Services but as you
will learn I am a beginner. I have learned how to connect to the API to use
the functions available. One of the functions I would like to use is the
following:
BOOL WTSWaitSystemEvent(
HANDLE hServer,
DWORD EventMask,
|
by: teddysnips |
last post by:
I have a notional Boolean value stored in the Registry. Actually it's
a REG_DWORD capable of taking values of either 0 or 1.
So, I need to populate a checkbox on a form dependent on this value.
1. I tried this:
chkLogToFile.Checked =
Boolean.Parse(LogFileKey.GetValue("LogToFile"));
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|