Perfect, that was the clarification I needed.
FlyingIsFun1217
Type: Posts; User: FlyingIsFun1217
Perfect, that was the clarification I needed.
FlyingIsFun1217
Interesting; I was under the presumption that .lib files were static libraries compiled by MSVC, and gcc only accepted .a libraries.
Learn something new every day.
Thanks again!
Yeah, and that's kind of what I was afraid of. Bonjour provides a .lib library, but I'll have to find some way to use it within gcc, since it's meant for MSVC. Honestly, if MSVC had as simple of a...
Alright, I've read a bit on it, and at least for me, it's a bit of a confusing topic (methods of working at a low assembly level?), but I've added what seems necessary to me to my code:
static...
Thank you, the perfect reference I was looking for.
I'll review it, hopefully learn something, and dare I say, return with any more problems.
FlyingIsFun1217
My tiny little self-taught brain is starting to lose track of things. What is going on with the typedef? I've never seen one with parameters (?), as if it were defining the void type or something.
...
Well, it's linking into Apple's DNS-SD library, which is quite complex, so I'll spare you the pain of scrolling through it. It can be found here though, if you'd like to look at it, the only changes...
Ask and your wish shall be granted
#include "dns_sd.h"
#include <stdio.h>
#include <string.h>
void HandleEvents(DNSServiceRef)
{
//Placeholder
Well, it went from understandable to mind(mine)-boggling:
Changed the code, here's what I get now:
God I hate trying to work with Bonjour.
FlyingIsFun1217
Looks like it took a set of unwary eyes to spot that; thanks :)
FlyingIsFun1217
Here's my latest compilation error:
Maybe I'm crazy, but they're the exact same thing, what's the problem?
FlyingIsFun1217
I've added a ! defined(__MINGW32__) to the elif, that has solved compilation. Then again, I haven't yet tried to use any of the dns_sd.h code with my own, so I can't be terribly sure if it'll...
Hey,
I'm attempting to use Apple's DNS-SD library in an application of mine. At this point, I'm just trying to compile dns_sd.h in my project without errors to set up for usage later. When I go to...
Well, don't I just feel retarded now?
Thanks!
FlyingIsFun1217
Well, I tried that, but all I got was a return of the full number of characters in the string, not just the periods.
Why would it count every character?
Thanks!
FlyingIsFun1217
Hi
I've got the following, which is supposed to allow for finding the number of characters in a string, and return that amount +1:
int function(string databaseDays)
{
int...
Thanks again! Something I love about the community here, always seems to be willing to help.
FlyingIsFun1217
Sweet! What is the term for this? I wouldn't mind reading up on it more.
Thanks!
Hey
I have a somewhat interesting situation / question. Let's say I had a class that was meant for database manipulation with the following code:
#include <iostream>
using namespace std;
Interesting... so it would be fine had it been designed that way/the compiler was made to support that? Seems like one of those things that should have been done.
FlyingIsFun1217
But isn't it being initialized when it goes to compile the private class variables? Or does that only serve as a 'pointer' for future reference (in the code), and it's actually initialized when first...
Alright, but... why can't you set the value in the constructor in a class? Seems kinda stupid, I'm hoping I'm missing something bigger here...
FlyingIsFun1217
Hey!
I've got a class with a private bool isScanning, and I'm trying to set it to false when initializing it in the class:
class blah
{
public:
function1();
I didn't say to expect to create anything when jumping in over your head, I simply said that doing that for me 'forced' (and by forced, I mean ticked me off, and MADE me learn why I was screwing up)...
But don't worry about the API; the core of it is consistent amongst manufacturers.
FlyingIsFun1217