|
Hi
In my application, i am getting an exception which is showing Ordinal 1028
Can any body tell me what does it mean and i can fix this problem.
Log:
001B:7C16E14F Ordinal1028+7D,
001B:7C16E1B8 Ordinal1209+3B,
001B:7C16E1F6 Ordinal1209+79,
|
|
|
|
|
problemfixer wrote: In my application, i am getting an exception...
When?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: When?
After upgradation
led mike
|
|
|
|
|
PC is an IBM brand desktop, 1 Ghz CPU, 512 meg RAM
Sometimes the cursor will stop blinking, the mouse cannot change the cursor position and cannot select text, etc. This will endure for 10 to 20 seconds.
Task manager does not report any high CPU usage.
Task manager reports plenty of unused RAM.
I can switch to another application program and they work fine.
There are times when I can work for an hour without incurring this problem, but there are also times when it seems to happen very frequently.
Any help would be very much appreciated.
Thanks,
Robert
|
|
|
|
|
Robert Palma Jr. wrote: Any help would be very much appreciated.
VC++ help?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I'm afraid that I was not clear with my question.
The problem is not with the app that I am developing.
The problem is with Visual Studio VisC++ 6.0 environment itself. The cursor freezes while editing source code.
Any help would be appreciated!
Thanks,
Robert
|
|
|
|
|
Robert Palma Jr. wrote:
The problem is with Visual Studio VisC++ 6.0 environment itself.
You might consider this forum.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks David,
I actually put a post there about 45 minutes ago
Robert
|
|
|
|
|
can anyone explain or point me to some link or something where i can
learn how to save/load text from harddisk ?
my project is to make program that can save cooking recipes with their pictures and should have search box where you can type word example "eggs" and somewhere should appear all recipes with eggs
and when i select the title of some recipe example "Fish and chips" in the picture box should apper picture of the meal and in the label or something similar should apper all the ingredients for the meal
my idea is thet i can put the recipes in a list box and search via edit box and i can put simple picture control for the pictures of the recipes where should appear but the problem comes with the saving all the data ( the text for the recipe and the path of the pictures ) cant put it in a string because in that case the user cant puts his own recipes and pictures...
thanks in advance
|
|
|
|
|
Since you are using MFC, check out CFile , CArchive , and serialization.
From a design perspective, don't focus on your project as a whole. Instead, work on the small pieces first (e.g., reading from and writing to a file, populating a listbox, filtering a listbox based on the contents of an edit control), and they will eventually meld themselves into a working application.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i think i found what i was looking for so
to answer briefly to anyone how may have the save problem and is searching here
this link
http://www.functionx.com/visualc/fileprocessing/commondlgs.htm
and this link
http://www.codeproject.com/KB/cpp/cfg.aspx
help me a lot
|
|
|
|
|
Hi, all!
How can i do handshake before using BIO pairs for encrypt/decrypt, if as
transport i use Winsock(WSASend and WSARecv)?
|
|
|
|
|
What have you done so far? Did you succeed in using some OpenSSL example code? Maybe you can describe your problem more specific then it's easier to help.
/M
PS: Congrats for 2nd place with Ani Lorak
|
|
|
|
|
some example
this is send function:
DWORD CSSLTLSLayer::Send(IN OVERLAPPED *pOverlapped,
IN WSABUF *pBuffer,
OUT PDWORD pdwWasSend)
{
size_t iBuffered = BIO_write(m_pSSLBIO, pBuffer->buf, pBuffer->len);
BIO_flush(m_pSSLBIO);
iBuffered = (int)BIO_ctrl_pending(m_pNetworkBIO);
if (iBuffered <= 0){
return(WSA_IO_PENDING);
}
m_vcLayeredBuffer.clear();
m_vcLayeredBuffer.resize(iBuffered);
iBuffered = BIO_read(m_pNetworkBIO,
&m_vcLayeredBuffer.front(),
(int)iBuffered);
pBuffer->buf = &m_vcLayeredBuffer.front();
pBuffer->len = (u_long)m_vcLayeredBuffer.size();
DWORD dwStatus = __super::Send(pOverlapped, pBuffer, pdwWasSend);
return(dwStatus);
}
this is receive function (common problem, because DWORD Send() work correctly):
DWORD CSSLTLSLayer::Receive(IN OVERLAPPED *pOverlapped,
IN WSABUF *pBuffer,
OUT PDWORD pdwWasRecv)
{
if (!m_bKEXed){
this->Handshake();
this->InitBIOAbstractions();
return 0;
}
DWORD dwRet = __super::Receive(pOverlapped, pBuffer, pdwWasRecv);
BIO_write(m_pNetworkBIO, pBuffer->buf, *pdwWasRecv);
BIO_flush(m_pNetworkBIO);
size_t iBuffered = BIO_ctrl_pending(m_pSSLBIO);
if (iBuffered <= 0){
return(WSA_IO_PENDING);
}
m_vcLayeredBuffer.clear();
m_vcLayeredBuffer.resize(iBuffered);
iBuffered = BIO_read(m_pSSLBIO, &m_vcLayeredBuffer.front(), (int)iBuffered);
pBuffer->buf = &m_vcLayeredBuffer.front();
pBuffer->len = (u_long)m_vcLayeredBuffer.size();
return(dwRet);
}
and Handshake() method:
void CSSLTLSLayer::Handshake(void){
if (!m_bKEXed && m_pSSL){
SSL_set_fd(m_pSSL, (int)m_Socket);
SSL_set_accept_state(m_pSSL);
SSL_do_handshake(m_pSSL);
m_bKEXed = true;
}
return;
}
maybe i can do handshake without using SSL_set_fd(), SSL_set_accept_state() and SSL_do_handshake()?
>>PS: Congrats for 2nd place with Ani Lorak [Smile]
Thanks!
|
|
|
|
|
Hi everyone,
I am doing programming in c++, please provide me algorith or a code to the following problems.
I am using the sr3000 camera which is Time of Flight camera, which will provide distance from camera to the pixel.
I am having an image, and i have to find the minimum volume of the object in the image.
for the present situation there is only on object in the image.
1. I have made the image in to binary image which give balck as background and white as object.
2. I have acess to intensity, x, y, z coordinates and distance value of the image.
my probelms.
1. Now please help me in finding the boundary of the object (where object is in white).
2. After finding the boundary how should I find the centroid of those boundary point.
3. How can i make this matrix in c++
| x1 - x0 y1 - y0 z1 - z0 |
| x2 - x0 y2 - y0 z2 - z0 |
M = | . . . |
| . . . |
| . . . |
| xn - x0 yn - y0 zn - z0 |
the above is a matrix (3*n) where x0, yo, zo, is the centroid of the boundary points and x1, y1, z1 are the points till xn, yn, zn.
please help in this regards,
thanks in advance.
|
|
|
|
|
CP 's search engine and the magic happens [^]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Hello there,
i have a question. I want to draw on my webcam live view.
I create a capture window with capCreateCaptureWindow(...)
and start with capPreview. Then i can see the live view on my dialog.
I want to draw on this. But it doesnt work.
Before I start the capPreview i can draw on dialog at the live view position.
But as soon as i start capPreview i can the live view but i cant see
the drawings anylonger. Then i put an extra picturecontrol on my dialog and it works.
i can draw on it and it lies over the live fiew, but it flickers.
Is there any way to draw on my live view without placing an extra picturecontrol on my dialog?
I read that there are 3 ways getting the image of a webcam throught Vfw.
First is the capPreview and another one is to avoid caPreview. Instead it uses
the capSequenceNoFile. It requires to create a DIB and draw it on the dialog.
greeintgs,
cmos
|
|
|
|
|
Hi, I'm using VC++08EE and am trying to embed a file "smile.png" in my application. It will be a texture for a cube in a direct3D application.
I right click on my project in the solution explorer, click "add existing file", select my file, and then click okay. Now the problem is, when I compile and run the application, the file is not actually included in the build. I check the file size of the .exe and it is only 11kb, yet the image itself is 52kb. How do I get this image to actually be INCLUDED in the .exe?
My other question is about how to reference files in a directory above the current one - lets pretend we have the following directory structure;
|
|
+-My Program
| |
| +-Bin
| | |
| | +-App.exe
| |
| +-Textures
| |
| +-smile.png
|
|
So if I want to access "smile.png" from within "App.exe" what path should I enter? I know I can enter the full path to the file but this is tedious and if the user changes where the program is installed to, then big troubles can arrise. Some programs would appear to use "..\" as the "Up one folder" command. I have tried setting the path to "..\Textures\smile.png" but that doesn't work either. What do I do? :S
|
|
|
|
|
I guess you have to add the file as resource by importing from resource window.
and and instead of relative path you can get current application path and then change the last folder to one which you want I hope it makes sense
|
|
|
|
|
how do i import it from the resource window? :S the VC++ help said something about referencing the file in a .rc file, but ever since I've updated to vc++2008 (from 2005), .rc files havent been an option in the add new file dialog.
and how do I go about getting the current application path? vc++ help returns nothing of value.
EDIT: Problem 2 solved - I was using ".../Textures/smile.png" instead of "../Textures/smile.png" (There's an extra period at the start there)
Problem 1 remains unsolved.
modified on Tuesday, May 27, 2008 9:06 AM
|
|
|
|
|
i mean you need to import your png file as bitmap then only it will be part of EXE.
i dont have 2008 with 6.0 - 2005 resource opens with Ctrl+R as well as from menu Insert Resource.
|
|
|
|
|
I've tried importing it as a bitmap but this doesn't make any difference.
ctrl+r isnt a valid shortcut in 2008. I also can't find this menu you speak of
|
|
|
|
|
Visual Studio Express Edition comes without a resource editor.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
is it??
|
|
|
|
|
Thanks, looks like I'll just have to place all my files outside of the executable.
|
|
|
|