Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

250 Neutral

About garyfletcher

  • Rank
    Advanced Member
  1. garyfletcher

    VB6 - Genric globals

    Thanks Valman Will check it out, and let you know...
  2. garyfletcher

    VB6 - Genric globals

    Thanks Valman. Am not 100% sure what you mean. Is Form an inbuilt VB6 class, or would I need to create a public class module called from, or whatever, that consists of Set() and Get() provate functions, and not much else? Or am I WAAAAAY of the mark here?
  3. Hi All When going from form1 to form2 is there a way, without using PUBLIC globals, that functions/Subs in Form2 have to access a project level variable that will indicate the form that the current form was called from? So in a func/sub you could have something like: if (lastform = 'form1') then do processing based on being called from form1; else do some other processing end if Sorry am new to VB programming, but am guessing that this can be done.
  4. garyfletcher

    Array processing

    Zahlman. Sorry you don't understand, my explination wasn't that great. But, it does work, and without recursion. The hard part is doing a combination like abde (ie. missing an array element), so that is why I had to have base combinations as explained. Then use these to drivr "down" deeper into the array. If you're interested will send out the algorithm, with better explination?
  5. garyfletcher

    Problems with strings (c)

    Try looking at the char* strstr(char *str1, char *str2) function. Takes 2 strings, returns null if str1 isn't in str2, else returns a char * to str1 inside str2.
  6. garyfletcher

    Array processing

    Cheers Zahlman, recusrion isn't really a PL/SQL facility (as far as I know), never read it in any books anyhow. In the end I initially created a sub-set of the duplicates on a cetain level: ab ac ad ae..etc Then used this as the basis for further processing. From above had an outer loop (A, B, C, D, E), then if this was the initial time I was trying to make coimbinations in this outerloop, then make the relevant doubles. If we already have the base then use this to make all other combinations: abc abd abe...etc When all of the outer loop is exhausted (inner loop = final one of outer loop(E)) then move on to next outer loop....B. Do Same...make the base (doubles) Bc bd be Then the inner loop: bcd bce bcde bde be...etc Then c..... You get the picture. Seems to work fine. Although am sure there are more efficient algorithms.
  7. garyfletcher

    Array processing

    Hi Guys No this is not homework...although it is work related. The language is PL/SQL with PL/SQL tables. Not after a solution, just an existing algorithm that I can then implement. Good idea about representing each element as a binary number, unfortunately Oracle doesn't provide this facility.
  8. garyfletcher

    Array processing

    Hi all I need an alogrithm to help with what seems to be a relatively easy problem. I have array of n elements, and am required to sum all elements against the other in multiple combinations, so that all possible combinations are exhuasted. So array has 3 elements A, B and C. I need: A+B+C A+B A+C B+C Does anyone know of an algorithm that will help with this. The algorithm has to work with all levels of indices, ie a 4 element array A, B, C, D: A+B+C+D A+B A+C A+D B+C B+D C+D A+B+C A+B+D B+C+D...etc Am sure there will be something out there that can help with this.
  9. Threading issue? Please explain.
  10. I have a static int declared local in C (This is NOT a C++ problem) As we all know in C a ststic int declared inside a function retains its "value" outside of that function (although local scope applies). I have recently converted an Oracle C (Pro*c) process from VMS to XP (2003 server), and am suddenly expeircing invalid cursor issues. The close of the cursor is dependant on a static variable that indicates whether the curor is open or closed. This is a very high (500,000/day) transactional piece of software. Has anyone else expierienced problems with oracle cursors in the same way on windows 2003?
  11. garyfletcher

    Linking with dlls

    Hey there Am having something similar myself, but with an encryption dll/lib. The dll is in system32, so should be picked up bat am still getting unresolved symbol issues. Did you have the same issue? How did you get round it? G
  12. garyfletcher

    can't find dll???

    The Platform SDK for VS2003 is installed...just can't seem to find the dlls and/or libs. Must be missing somethign quite simple...any ideas? G
  13. garyfletcher

    can't find dll???

    Thanks for that. Trouble is the linker option doesn't seem to have an option to tell it what and where to find specific libraries...anyone? G
  14. Hi all. I've got a call out to the windows encryption routine (cryptoAPI) CryptMsgOpenToEncode(). As I understand it this is in the dll advapi32.dll. This is in my c:\windows\system32 but when I compile I get unresolved symbols for the function call CryptMsgOpenToEncode(). Has anyone an idea as to why the function cannot be found? I am using VS2003 (Win32 Console app project).
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!