|
David, the code and article is rewritten, now. Thanks so much for your help. I used SendMessageTimout and it worked nicely!
Thanks,
Ben.
|
|
|
|
|
HI all,
i m sending SMS using AT commands in Text mode,its works fine.
now one problem is occur i m not able to send sms more than 160 words.
so please tell me how do i send a long sms exceeding 160 characters using AT command.
please tell me how can i do this.
thanks in advance.
|
|
|
|
|
Have you heard of Google? txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hi all,
i m using AT commands to send SMS,
I need to find out how to hide your number, so that the receiver will either see a message with no sender or even better a sender with characters as their number, e.g From: "Service".
i want if any recepient receive my SMS ,SMS display a Name that is i m set instead of my phone number.
please help me for this.
tahnks.
|
|
|
|
|
I knew helping you with SMS was going to be an issue - I can think of no good/nice/honset reason for doing what you suggest - I urge anyone else here not to respond if they know a way of doing it.
'g'
|
|
|
|
|
Fortunately, for the rest of us, this feature is not allowed, as message identification is controlled by the network provider. Short answer, you cannot do it. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Just curious.
Why?Watched code never compiles.
|
|
|
|
|
I really need to do this.
|
|
|
|
|
Le@rner wrote: I really need to do this.
Why?txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
ok, but why you need to hide the identity of the sender ?
I'm just curious. Watched code never compiles.
|
|
|
|
|
I making an sms sender application and i dont want to display me number to all reciepients.
|
|
|
|
|
for me i want to show the name of the campany instead of the number , any help??
|
|
|
|
|
Is it possible to create another logical(secondary) desktop on windows xp so that I can run my application on more resolution . Trioum
|
|
|
|
|
What do you mean by more resolution? Your question is not very clear. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Me think he wants to create a virtual desktop, larger than the actual desktop), so you can scroll the whole desktop and place application in position outside of the screen "physical viewport".
I think I've seen this on linux.Watched code never compiles.
|
|
|
|
|
Ya you are right I need this type of desktop so that I can extend my application on that desktop Trioum
|
|
|
|
|
Do you mean something like This[^]? Wout Louwers
|
|
|
|
|
Suppose I have the following:
(in class_a.h):
class Foo;
class ClassA
{
public:
typedef std::vector< boost::shared_ptr<Foo> > Foos;
Foos makeFoos() const;
};
and in another class, I have a method that makes use of a vector of
Foos. Should I do this:
(Try #1, class_b.h):
#include "class_a.h"
class ClassB
{
public:
void useFoos(const ClassA::Foos& foos);
};
or just repeat the typedef in class_b.h like this:
(Try #2, class_b.h):
class Foo;
class ClassB
{
public:
typedef std::vector< boost::shared_ptr<Foo> > Foos;
void useFoos(const Foos& foos);
};
Try #1 seems bad because it creates a dependency between class_a.h and
class_b.h when all I want is the typedef for Foos. Try #2 repeats the
typedef, so it seems like I'm repeating code which also seems bad, but
not as bad as Try #1. Repeating typedefs also becomes less attractive
when the thing I'm typedef'ing is non-trivial.
Perhaps I should I break out the Foos typedef into it's own header (perhaps
the header file for class Foo?) and have both class_a.h and class_b.h
include that?
Thanks!
-- Arcadio
|
|
|
|
|
Since the typedef is common to both classes you should put that in a common header.
|
|
|
|
|
#1 - clumsy, forcing an unneeded dependency for Foos on ClassA.
#2 - bad, semantically if not syntactically.
asincero wrote: Perhaps I should I break out the Foos typedef into it's own header (perhaps
the header file for class Foo?) and have both class_a.h and class_b.h
include that?
Yes.
Foo.h:
class Foo;
typedef std::vector< boost::shared_ptr<Foo> > VectorSharedPtrFoo;
class Foo { ... };
or,
class Foo {
typedef std::vector< boost::shared_ptr<Foo> > VectorSharedPtr;
};
I usually prefer the former.
In general, do not define a type in a class unless it is specific to that class.
... and do you _really_ want to return a vector from ClassA::makeFoos() ?
The newer compilers can try to optimize out the copy, but you're never sure.
Usually better to pass a non-const ref as an output parameter....cmk
The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack
|
|
|
|
|
Hi Members
I am try to hook keybord ON WINDOWS 7.I find some artical from codeguru.I have little dot.When i write some word on notepad and office document then it's working.But when i going on Internet explorer or mozila then working something wrong.
[]
In mozila alwalys call double processkey(..)
In Internet explorer when i type on address bar the function call
processkey(..) but when i type something on web page the function not call.
If any thing wrong then sorry .I have no clue how to solve that problem.Please help me.
|
|
|
|
|
Is Keyboard hook only for Notepad.exe ( check somewhere in DllMain()) or its global hook?modified on Friday, February 19, 2010 5:57 PM
|
|
|
|
|
SIR thanks for responce.
What i do in DllMain?
#include "stdafx.h"
#include "keydll3.h"
#pragma data_seg(".HOOKDATA")//Shared data among all instances.
HHOOK hook = NULL;
HWND hwnd = NULL;
#pragma data_seg()
#pragma comment(linker, "/SECTION:.HOOKDATA,RWS")//linker directive
HINSTANCE hinstance = NULL;
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
hinstance = (HINSTANCE)hModule;
hook = NULL;
return TRUE;
}
KEYDLL3_API void installhook(HWND h)
{
hook = NULL;
hwnd = h;
hook = SetWindowsHookEx(WH_KEYBOARD,hookproc,hinstance,NULL);
if(hook==NULL)
MessageBox(NULL,"Unable to install hook","Error!",MB_OK);
}
KEYDLL3_API void removehook()
{
UnhookWindowsHookEx(hook);
}
KEYDLL3_API LRESULT CALLBACK hookproc(int ncode,WPARAM wparam,LPARAM lparam)
{
if(ncode>=0)
{
if((lparam & 0x80000000) == 0x00000000)
{
hwnd = FindWindow("#32770","Keylogger Exe");
PostMessage(hwnd,WM_USER+755,wparam,lparam);
}
}
return ( CallNextHookEx(hook,ncode,wparam,lparam) );
}
or give me some other dll web address.
Please help me....modified on Saturday, February 20, 2010 2:49 PM
|
|
|
|
|
Take a look at this link for reference Hooks and DLLs[^]
Looks to me that WM_USER+755 message may be already register with one of plug in of the browswer. the above link shows how to create unique message.
HTH
|
|
|
|
|
Hello all,
I am trying to rotate a bitmap at integer multiples of 90° and looking for a fast and efficient way to do it. I have looked through lots of code over the net involving multiplications and going through each pixel which I dont prefer. I also came accross a way where you can use worldtransform, but MSDN states that even at 90° rotation the image will have shear effects.
My bitmap bitdepth is 8bits (grayscale) and in my application as soon as I get a frame (which is in bytes[8bit image]) from framegrabber, I memcpy it to pDIBSecBits of the bitmap and I bitblt it to the display. Now I need to rotate the image at 90°cw to compensate the rotation of an hardware in our system. I tried worldtransform, but it didnt work for me except showing a black display.
here is how I am using it for 90°cw rotation..
CDC *dc = Display->GetDC();
HGDIOBJ holdbm;
holdbm = memDC.SelectObject(hbm);
float cosine = (float)cos((-90.*22.)/(7.*180.));
float sine = (float)sin((-90.*22.)/(7.*180.));
XFORM xform;
xform.eM11 = cosine;
xform.eM12 = -sine;
xform.eM21 = sine;
xform.eM22 = cosine;
xform.eDx = (float)-bmi->bmiHeader.biWidth;
xform.eDy = (float)-bmi->bmiHeader.biHeight;
SetGraphicsMode(dc->m_hDC, GM_ADVANCED);
SetWorldTransform( dc->m_hDC, &xform );
dc->BitBlt(0,0,bmi->bmiHeader.biWidth, bmi->bmiHeader.biHeight, &memDC, 0, 0, SRCCOPY );
memDC.SelectObject(holdbm);
ReleaseDC(dc);
Could someone help me to figure out an efficient/fast way to do this rotation?
thanks in advance,PKNT
|
|
|
|