|
Hi, all
I've locate the error at line 13770 in exprtk.hpp, which is:
Quote: static inline std::string id(expression_generator<type>& expr_gen,
const details::operator_type o0, const details::operator_type o1)
{
return (details::build_string() << "(t" << expr_gen.to_str(o0) << "t)" << expr_gen.to_str(o1) << "t");
}
I comment the command after "<<", and the problem remains. Thus I can narrow it to Quote: details::build_string()
I extrememly appreciate if anyone can bring some solution.
Many thanks in advane.
Long
|
|
|
|
|
Unfortunately your original message has been deleted so there is some detail missing. Please provide the compiler message that indicates the error.
Use the best guess
|
|
|
|
|
I want to keep a texture2D to memory. But they are so many colors, ie. DXGI_FORMAT_B8G8R8A8_UNORM, DXGI_FORMAT_R8G8B8A8_UNORM and so on. So i want to change the source to DXGI_FORMAT_B8G8R8A8_UNORM, that i can deal with easily.
texture2D->Map()
...
texture2D->Unmap();
That's anyone's ideal. Thanks.
|
|
|
|
|
Is this a stupid question that no one want to answer. 
|
|
|
|
|
Learn patience: people answer questions here in their own time (and timezone), and at no cost to you.
Use the best guess
|
|
|
|
|
Hi All,
I have used this sample as reference How to use a web cam in C# with .NET Framework 4.0 and Microsoft Expression Encoder 4[^]
and managed to modify the files to stream to my IIS . I have no issue streaming towards my own IP address . However , problem arises when i try to stream it to another IP address . It disconnected after few minutes of streaming but strangely at times it works fine(Not most of the time) . Asked at Microsoft Expression Encoder Forum and no one dares to answer me . I hope here are brave programmers here which can help me solve this particular issue . Do request me if you need to take a look at my codes .
Thanks ,
Daniel
|
|
|
|
|
Does this have anything to do with C++?
Use the best guess
|
|
|
|
|
hi,
How to connect to local database from xml.
Basically, i would like to know configuration settings made to xml file to connect to local database
|
|
|
|
|
|
Dear All,
This is my first time to ask question on this platform.
The question is: I want to write a program, which can modify the mouse position to achieve inverting mouse movement, like wanna move up but it goes down. wanna move left but it goes right.
here is the callback sample code, but I can get what I want.
What can I do?
LRESULT CALLBACK MouseHookProc2(int nCode, WPARAM wParam, LPARAM lParam)
{
if(wParam == WM_MOUSEMOVE ||wParam == WM_NCMOUSEMOVE)
{
MOUSEHOOKSTRUCT* data=(MOUSEHOOKSTRUCT*) lParam;
LPARAM lParam2= MAKELPARAM(0,data->pt.y);
return CallNextHookEx(NULL,nCode,wParam,lParam2);
}
return CallNextHookEx(NULL,nCode,wParam,lParam);
}
|
|
|
|
|
I think you are approaching the problem from a wrong direction. The mouse works the following way: The hardware sends movement deltas to the machine and to the OS via the driver and there it gets accumulated into a mouse position value. If you want to invert the movement you have to invert the deltas because you simply can't do that with the position. Maybe if you knew the previous value of the position... But even in that case that would be quite a messy solution. Another problem with this solution is that as far as I know most hook types are not allowed to modify the incoming parameters and they have to pass on them to the next hook handler unmodified.
You should probably write a mouse filter driver:
http://code.msdn.microsoft.com/windowshardware/Moufiltr-WDF-Version-fb57f5de[^]
http://www.maf-soft.de/mafmouse/[^]
|
|
|
|
|
Thanks for your information lead me to the right direction.
I will study driver filter then. thanks
|
|
|
|
|
You are welcome! Good luck, have fun!
|
|
|
|
|
Dear Bro,
Do you know "sakasamouse"?
That tool can do excatly what I want.
And it seems it is not a driver.
because it is an .exe file and has an .dll with it.
Do you know how it do?
Thanks in advance
|
|
|
|
|
No, I don't know it. I use my mouse as it comes with my windows.
|
|
|
|
|
OKay. thanks anyway.
Maybe I should ask again...
|
|
|
|
|
|
try it alreay. but it can't fullfill the use I need.
even if it didn't have any effect at all.
guess the mouse move event reflash is too quick.
|
|
|
|
|
Does anyone know how to retrieve the user and kernel cycle times on a per-logical processor basis in Windows?
Task Manager does it, but how? Every function I've looked at only gives total times for all processors.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
|
I have a memory card which is having corrupted file system. I need to get physical drive size.
I tried using WMI but it gives 8 MB only even though its size is 30GB.
Can you please guide me?
|
|
|
|
|
If the file system is corrupt then it is unlikely that any of the normal functions will work successfully, you should try to reformat the device.
Use the best guess
|
|
|
|
|
But we nothing to do with file system, need to get physical disk size. Many other software are showing correct size for same memory card.
Can you please give any idea?
|
|
|
|
|
Maybe you need to show us the code you have tried.
Use the best guess
|
|
|
|
|
Below is WMI call
VariantClear(&vtProp);
hr = pclsObj->Get(L"Size", 0, &vtProp, 0, 0);
Below is IOCTL call
bResult = DeviceIoControl(hDevice, IOCTL_DISK_GET_DRIVE_GEOMETRY, NULL, 0, pdg, sizeof(*pdg), &junk, (LPOVERLAPPED) NULL);
CloseHandle(hDevice);
ULONGLONG DiskSize = 0;
DiskSize = pdg->Cylinders.QuadPart * (ULONG)pdg->TracksPerCylinder *
(ULONG)pdg->SectorsPerTrack * (ULONG)pdg->BytesPerSector;
wprintf(L"Disk size = %I64d (Bytes)\n"
L" = %.2f (Gb)\n",
DiskSize, (double) DiskSize / (1024 * 1024 * 1024));
But both gives same result. pdg->Cylinders.QuadPart is coming 1.
|
|
|
|