Search Results - CodeGuru Forums
 CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

# Search:

Type: Posts; User: Simon666

Page 1 of 80 1

1. ## Thread: [RESOLVED] Closest distance between two line segments

by Simon666
Replies
1
Views
312

### Re: Closest distance between two line segments

I have decided to contact Dr. David H. Eberly, which is referenced as the source upon which the author in the first link I provided based himself upon. Dr. Eberly was kind enough to write an...
2. ## Thread: [RESOLVED] Closest distance between two line segments

by Simon666
Replies
1
Views
312

### [RESOLVED] Closest distance between two line segments

Does anyone know a good algorithm for calculating the closest points/distance between two line segments? I use some pretty general code:

http://geomalgorithms.com/a07-_distance.html

which seems...

by Simon666
Replies
1
Views
451

Hi all,

My application compiles fine with Win32 and runs fine, but for x64 it compiles fine but crashes on:

CMainFrame* pMainFrame = new CMainFrame;
if...
4. ## Thread: Find approximate value fast, given a point cloud of data

by Simon666
Replies
0
Views
622

### Find approximate value fast, given a point cloud of data

So I have this Computational Fluid Dynamics data, it is a two dimensional point cloud. Anyone know any good algorithms for, given a point location (x,y), to find a value and to find this value fast?...
5. ## Thread: Emulate shutter in OpenGL

by Simon666
Replies
0
Views
6,113

### Emulate shutter in OpenGL

I want to emulate shutter time with OpenGL. I found this below gives the best results:

ClearScene();

DrawScene();

DrawMovingObject();

6. ## Thread: OpenGL Component for VC++

by Simon666
Replies
6
Views
9,177

### Re: OpenGL Component for VC++

Any hints on how to use OpenGL fonts? I'm using the following functions below, BuildFont is called in OnCreate, KillFont in OnDestroy, then e.g.:

glRasterPos3d(0.5, 0.5, 0.50 );

...
7. ## Thread: OpenGL Component for VC++

by Simon666
Replies
6
Views
9,177

### Re: OpenGL Component for VC++

In my code, it's not there:

static PIXELFORMATDESCRIPTOR pfd = {

sizeof(PIXELFORMATDESCRIPTOR), // size of this pfd
1, // version number...
8. ## Thread: OpenGL Component for VC++

by Simon666
Replies
6
Views
9,177

### Re: OpenGL Component for VC++

Hi,

I have used this code so many years ago and it has most of the time worked fine (and is working fine now on my operating system). However, on some computers of other people, it sometimes shows...
9. ## Thread: [RESOLVED] Extracting time stamps from pdf

by Simon666
Replies
21
Views
1,538

### Re: Extracting time stamps from pdf

Wow, that works even better. Thanks a lot. There were 400+ occurrences in one file alone, I had seriously underestimated the number of occurrences and the manual work it would have taken. There are...
10. ## Thread: [RESOLVED] Extracting time stamps from pdf

by Simon666
Replies
21
Views
1,538

### Re: Extracting time stamps from pdf

Anyway, this did the trick:

CStdioFile InputFile;

{
CString Line; CString ToFind; ToFind.Format("when");

...
11. ## Thread: [RESOLVED] Extracting time stamps from pdf

by Simon666
Replies
21
Views
1,538

### Re: Extracting time stamps from pdf

I use Multi Byte character set in my project configuration. The pdf I have no clue how to find out.
12. ## Thread: [RESOLVED] Extracting time stamps from pdf

by Simon666
Replies
21
Views
1,538

### Re: Extracting time stamps from pdf

Anyway, I got an idea, I might use GetPosition and check if it is anywhere near the end of the file, if not just call ReadString again in a while loop. I'll first try that.

by Simon666
Replies
2
Views
648

14. ## Thread: [RESOLVED] Extracting time stamps from pdf

by Simon666
Replies
21
Views
1,538

### Re: Extracting time stamps from pdf

Yes I could, why?
15. ## Thread: [RESOLVED] Extracting time stamps from pdf

by Simon666
Replies
21
Views
1,538

### Re: Extracting time stamps from pdf

1) I checked that doesn't occur.
2) Same.

Victor, I did not ignore you. I addressed that issue specifically. There are about 80 entries per...
16. ## Thread: [RESOLVED] Extracting time stamps from pdf

by Simon666
Replies
21
Views
1,538

### Re: Extracting time stamps from pdf

Let's me read a lot further but it still exits way before the actual end of the file.
17. ## Thread: [RESOLVED] Extracting time stamps from pdf

by Simon666
Replies
21
Views
1,538

### Re: Extracting time stamps from pdf

Already did that. What if there are a gazillion instances? I want to automate it. I thought the ten lines above could do it. Obviously I was wrong.
18. ## Thread: [RESOLVED] Extracting time stamps from pdf

by Simon666
Replies
21
Views
1,538

### [RESOLVED] Extracting time stamps from pdf

Hi, I am trying to automatically extract all time stamps in a pdf file. These are typically in a line like:

when="2010-07-30T15:20:30+04:00"

For this I was thinking of using CStdioFile and the...
19. ## Thread: Resource view takes hangs when trying to edit rc file

by Simon666
Replies
5
Views
1,023

### Re: Resource view takes hangs when trying to edit rc file

Somehow the lines with "design info" or whatever of a whole bunch of dialogs I have, were what caused the problems. Those lines don't seem necessary at first sight so I just threw them out....
20. ## Thread: Resource view takes hangs when trying to edit rc file

by Simon666
Replies
5
Views
1,023

### Re: Resource view takes hangs when trying to edit rc file

You are correct that I made manual changes in the original project. However, back then in VC++ 6.0 this was never a problem and always loaded correctly. I cannot undo that now however. I did find the...
21. ## Thread: Resource view takes hangs when trying to edit rc file

by Simon666
Replies
5
Views
1,023

### Resource view takes hangs when trying to edit rc file

No idea how to solve it. Found an online suggestion of using an rc2 file and cut and paste stuff from .rc file to .rc2 file to see which line causes the problem but don't know how to create a blank...
22. ## Thread: Cannot type certain letters in CEdit box

by Simon666
Replies
6
Views
1,039

### Re: Cannot type certain letters in CEdit box

Crap, it looks like I already solved this problem nine years ago too. It's just now that I am expanding my old program with new view classes that I am having this problem again and forgot I had the...
23. ## Thread: Cannot type certain letters in CEdit box

by Simon666
Replies
6
Views
1,039

### Re: Cannot type certain letters in CEdit box

The full list is ztyxn. TVisualFormView is a class from a visual framework:

http://www.codeproject.com/KB/dialog/visualfx.aspx

Now that I've tried out all the letters, it occurs to me I've...
24. ## Thread: Cannot type certain letters in CEdit box

by Simon666
Replies
6
Views
1,039

### Cannot type certain letters in CEdit box

CEdit box is located in TVisualFormView where also an MSFlexgrid control is located. I can not enter particular letters like "t", "n" and "y", possibly even more. I can enter them in edit boxes...
25. ## Thread: Parallel programming in Visual C++ 6

by Simon666
Replies
1
Views
396

### Parallel programming in Visual C++ 6

Is there some parallel library like OpenMP or whatever that would allow me to use Visual C++ 6.0 to compile any parallel programming software?
Results 1 to 25 of 2000
Page 1 of 80 1