rproffitt 2,701 https://5calls.org Moderator

Remember this is a well hashed out question at https://www.google.com/search?q=Accessing+class+variables+from+a+private+function+C%2B%2B&gl=US

In the class you want access you could write functions or methods which are public to get and set those values.

rproffitt 2,701 https://5calls.org Moderator

Sure. No problem. The Java app at https://github.com/MSUSEL/msusel-loc-metrics has full source and does all that. As to your file browser, you could look for that and then integrate the msusel effort.

JamesCherrill commented: This is obviously homework, so linking to someone else's pre-written solution isn't the right kind of help. -3
Maxpein commented: do you know the algorithm? +0
rproffitt 2,701 https://5calls.org Moderator

How Facebook does this is with their very own Cloud computing platform. We all wish you could have that problem but the question how Facebook does that is out there. Example: https://en.wikipedia.org/wiki/Open_Compute_Project is the open source design of their cloud compute hardware.

rproffitt 2,701 https://5calls.org Moderator

Both appear to create errors in my C++ compiler. Maybe you meant the return keyword? Here's a tutorial on that.
http://www.cplusplus.com/forum/beginner/24461/

rproffitt 2,701 https://5calls.org Moderator

Line 2? I supplied a quick 2 line example and it was fine. I wonder if your IF statement changed the string id to a numeric id as JS tends to do.

If so, make a copy of id to a temp object and use that for the if test and then id would be unscathed.

rproffitt 2,701 https://5calls.org Moderator

Taking a hint from https://stackoverflow.com/questions/7523929/jquery-ajax-with-webmethod-removes-zero-from-front try forcing it to be a string.
ie, line 10 change id to '' + id.

I did not test this.

rproffitt 2,701 https://5calls.org Moderator

Did you perform the typeof to check prior to line 2's alert? Is it just the alert? I tried this and had leading zeros.

id = '00123456'
alert(id)
rproffitt 2,701 https://5calls.org Moderator

My bet is your variable "id" is a number and numbers don't have leading zero's.
https://www.w3schools.com/js/js_type_conversion.asp gives example of reporting the typeof statement to confirm.

Since the code that created the value id isn't shown, you'll have to work that.

rproffitt 2,701 https://5calls.org Moderator

Is this in some code? If so, can you change the timeout? Example:

'For Timeout'
        Application.ODBCTimeout = 9999
rproffitt 2,701 https://5calls.org Moderator

That's an odd choice for your forum post. A code snippet is for you to share your final work. If you have a question, use the other styles.

rproffitt 2,701 https://5calls.org Moderator

Your code is not formatted so I won't get into it but an obvious omission is the missing fclose(). Take your pick from https://www.google.com/search?q=is+fclose+required%3F

I will not debate bad practices like this. Nor will I give a passing grade to such if submitted as homework.

rproffitt 2,701 https://5calls.org Moderator

Derailment complete: https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en or ES File Explorer used to deal with this very well. But when I want move files about I still lean on Dropbox.

rproffitt 2,701 https://5calls.org Moderator

Just to share that I do not download an ISO. I use Microsoft's Media Creation Tool and not once do I get an ISO file. This tool can create the nice USB stick or a DVD (on recordable media.) I've found so many that go the ISO method and seem to get into trouble over and over. What's strange is that when I use Microsoft's tool, it just creates the media (USB or DVD) and I'm done. Never see an ISO here.

rproffitt 2,701 https://5calls.org Moderator

Thanks for writing about Bluetooth dropouts. This is actually where our little company got its foot in the door on such work. The code we wrote at the application level works hard to re-establish the link in difficult connections.

The data is packetized, CRC'd and there's a reply expected so we know it made it there and back. It's not as speedy but the app is used by thousands in the companies that use it. There was another competitor but they would just fail on a lost link and you can imagine bugging the user on every packet drop what happens.

This is why when members get into packets, UDP and such I might perk up. We don't use any Internet Protocol but like UDP we do deal with the loss and have methods to get the data across and rebuild the link WITHOUT bugging the users. In the engineering mode of the app, we show the retry, link rebuild rates because we want to see the statistics.

But back to Apple. They added some then proprietary communications security chip and didn't reveal much about it. So that was the end of that phone for our use.

rproffitt 2,701 https://5calls.org Moderator

Who would? Some home automation (pre-smart home?) did and here we are years later with iPads that you can't replace. We've been fine with a succession from beginning days with PalmOS then WinCE and now Android. It's not industrial control on the devices but setup. The old controllers have some 3 buttons and a two digit display which if you were a masochist you could use but with close to one hundred options we all use the Android setup tools.

It's a real shame that Apple did something to the Bluetooth system. Maybe their adapter is cheaper today but with 20 buck smart phones that can run the setup apps, there's little chance we're going to ever revisit the Apple world.

rproffitt 2,701 https://5calls.org Moderator

@JamesCherrill. I've read that before and for reasons our main products don't have any iOS or Apple version. We use the old serial port Bluetooth profile and Apple botched that long ago so we can't issue an Apple version. We also have some code that is data driven so it's almost like a runtime. So maybe a mixed blessing we don't have to put up with Apple on this as it's an industrial control setup app and no one would understand if Apple blocked our app for any reason.

rproffitt 2,701 https://5calls.org Moderator

I have a question. I found the database connections to fail in 64 bit versions of current issues of Windows. As such we had to remove all database references and EOL (End Of Life) all the old VB6 apps that did database work. You may be new to VB6 but for intent and purposes it's a dead system.

Fun while it lasted.

rproffitt 2,701 https://5calls.org Moderator

I see PHPExcel has been archived and unchanged for years. Looks like it's time to migrate.

rproffitt 2,701 https://5calls.org Moderator

Why not that rule in your code? That is, you query if there is a record and if none for the time/date then you insert.

rproffitt 2,701 https://5calls.org Moderator

@kashioz. You can google up Louis Rossmann to find his encounters with Apple and more. Apple has declared war (my choice of words) on the repair industry by blocking access to spare parts and now this. As to legal, I'm not a lawyer but it appears to be legal until there's a court case or legislation.

phoneninja commented: its sadly not just Apple sadly. Its all search terms including non-branded ones as well as Google's own Pixel terms. Check out my article below +0
rproffitt 2,701 https://5calls.org Moderator

Since this appears to be a Windows system, I'd stop beating my head against the wall and make it C++.

open2join commented: I do need UI. For example, I would like to have a function that ask for a user input and it has to be more sophisticated than command window prompt. +0
rproffitt 2,701 https://5calls.org Moderator

Start with https://www.google.com/search?q=google+banned+all+apple+repair+ads and there it is. It appears to be mostly about Apple products and when two juggernauts, dare I write collude even if openly, we all lose.

Apple's repair system is OK when your device is under AppleCare but beyond that we see the repair price climb to levels where they essentially tell you to buy a new unit.

I've had no qualms about many third party repair companies but Apple seems to have declared war.

kashioz commented: So I'm running a cell phone and laptop repair service in Vancouver and recently my ads stopped showing up for the keywords like: cell phone repair iP +0
rproffitt 2,701 https://5calls.org Moderator

Let me share that my works in C# were the least troublesome over the years. My experience with .NET was without troubles so I tend to use that over and over.

I'd do that again.

open2join commented: thanks +0
rproffitt 2,701 https://5calls.org Moderator

It would alarm me. Why? If you created a non-Facebook method I would wonder if you were collecting FB data or something nefarious. FB has documented how to add a share button. Use that. https://developers.facebook.com/docs/plugins/share-button/

rproffitt 2,701 https://5calls.org Moderator

I looked at other websites and not one has such an interface. Look at how Daniweb shares. What's wrong with that?

rproffitt 2,701 https://5calls.org Moderator

Here's a thing. Over time web browsers have built up barriers to keep web page data private to that page and the server. So when you cross to another browser page I see a basic design problem as in "I don't expect this to work without a server holding that information."

That is, any data you need would go back to the web server then the new page would use pull data from your web server.

My answer is "Design the system to put and pull data from your web server. Don't count on being to access what's on a web page when you change pages or use another web browser tab." I'm not going to get into logins, session cookies etc.

rproffitt 2,701 https://5calls.org Moderator

Maybe a lite version. http://www.litedb.org/ takes the dll and your code in say C#.

rproffitt 2,701 https://5calls.org Moderator

I think you asked this 9 months ago. Doesn't matter. Maybe folk are not replying since https://www.google.com/search?q=Ionic+-+Pass+value+on+another+page seems to find priors.

rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

Since both Chrome and Opera use the same engine and changes happen there, you have to dig into your code.
I didn't but want to mention that I check out my code and two sites to see if there's any mention of troubles.
https://caniuse.com/ and https://validator.w3.org/

rproffitt 2,701 https://5calls.org Moderator

I can make a bet this may not work correctly. Long ago I had issues with VB6 and wrong answers. There were two causes.

  1. I forgot that a VB6 Integer was only 16 bits.
  2. There were patches made in VB6's SP6 and SP6a that corrected things.

Fast forward to today and I don't see these two apps working on Windows 10 or maybe others so it's a dead area to develop. I'm not surprised at all that it doesn't work.

rproffitt 2,701 https://5calls.org Moderator

I won't write exactly here. I will note that anyone using any Cloud app still has to protect their data. Only the very new don't understand this.
And sometimes I hear that only old foggies are the ones talking about it. Sort of like this guy: Steve Wozniak.

So about your system. As it's a business your disaster plan should be in place now. That is, what happens when this cloud is offline? And the other issues like lost laptop, etc.

rproffitt 2,701 https://5calls.org Moderator

You have asked similar same question twice or more before. Why ask again? I'm starting to think you are spamming for Mobirise?

gentlemedia commented: Yeah... annoying! +7
rproffitt 2,701 https://5calls.org Moderator

I wouldn't count on "G930" showing up. Maybe by vid and pid but by name, would not count on that. Also, why are you doing this? Your mention of a serial number has me worried you are looking for non-existant data.

Again, "Frankly I'd walk your post back a bit and tell where you are going with this. For example you seem to want it to show you "Logitech something" but that's not always in the data.

What you can see is in USBView at https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/usbview which has full source available for those that want to get into this.

But that's not what I'm asking or why I'm sharing here. I'd like to know what prompted you to go down this rabbit hole."

rproffitt 2,701 https://5calls.org Moderator

A few points.

  1. Java usually coughs up an error. Did it?
  2. https://rosettacode.org/wiki/Mastermind currently has 9 implementations up.
rproffitt 2,701 https://5calls.org Moderator

Frankly I'd walk your post back a bit and tell where you are going with this. For example you seem to want it to show you "Logitech something" but that's not always in the data.

What you can see is in USBView at https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/usbview which has full source available for those that want to get into this.

But that's not what I'm asking or why I'm sharing here. I'd like to know what prompted you to go down this rabbit hole.

rproffitt 2,701 https://5calls.org Moderator

While the answer is no since you have to pay for the Windows OS so it's not free at all. But if we disregard this is not a free OS then once you've paid then you can use the API calls. If there is an issue with free or not, why not do your work on Linux or Android?

rproffitt 2,701 https://5calls.org Moderator

For legal advice, you should use your lawyer in the country you plan to operate.

rproffitt 2,701 https://5calls.org Moderator

https://www.google.com/search?q=python+input&gl=US tells us how to use the input function. Always check your docs.

rproffitt 2,701 https://5calls.org Moderator

I see a probable issue with line 24 where you declare the SongFilesForUpload to be in the app path. That could bomb out if you place this app in Program Files. I wonder if you took any course about developing apps for Windows that covered how your app lives in Program Files and the data is per user in each user's home directory.

rproffitt 2,701 https://5calls.org Moderator

The closest I see is at https://www.c-sharpcorner.com/UploadFile/145c93/get-all-the-video-of-a-youtube-channel-using-jquery/
Otherwise I think you have to really explain what you want to do and share your code so far along with what stopped you.

rproffitt 2,701 https://5calls.org Moderator

@EddiRae. There are so many tutorials out there that I'm going to pass up writing one here. Here's your search but add the language you used to narrow it down which shouldn't matter.

https://www.google.com/search?client=daniweb-b-1-ab&q=How+to+deploy+your+visual+studio+app

EddiRae commented: Thanks!! +1
rproffitt 2,701 https://5calls.org Moderator

The problem with me writing code is twofold. First if you don't understand your code at line 11, how would you know what my code is doing?
Second, only you know what you wanted your app to do.

rproffitt 2,701 https://5calls.org Moderator

Try using VS's deployment tools next time as creating a folder and dropping exe's in there can be trouble as in permissions, ownership etc.

EddiRae commented: I am unfamiliar with VS's deplyment tools. I am not sure what to look for +1
rproffitt 2,701 https://5calls.org Moderator

I'm going with these can be nearly the same and YOU matter more than the degree title. Your skills and drive matter more here. From the web you read "You can work in the field of your choice with a Bachelor of Computer Science or Bachelor of Applied Computer Science. From healthcare to social media, ocean data to online commerce".

What matters is what you want to do during your coursework. You may find a passion in the ocean or what's in big data. Both degrees are just the paper that gets you in the door. It does not dictate what you will or can do.

rproffitt 2,701 https://5calls.org Moderator

As I read the first section of code, Line 11 reads as if your record set "might" give you a set with one item. Use your SQLfoo (your SQL command line skills) to test this out. Again, all looks as the code is fine and doing what you asked in Line 11.

rproffitt 2,701 https://5calls.org Moderator

You supplied your example. It looks to me to be exactly this: http://www.defusion.org.uk/wp-content/uploads/2006/08/screenshot_thumb.jpg

foo.jpg
Seems you have a match.

rproffitt 2,701 https://5calls.org Moderator

My take is you should copy prior builds like you see at https://www.reddit.com/r/PCMasterRace/wiki/builds
Or if you want to tweak them, just push it around like change to all SSD, more RAM, etc.

rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

Isn't it 127.0.0.1? I used that when I needed to chat with the SQL Server on the computer my app was running.